Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005838 [JEDI VCL] 00 JVCL Components minor always 2012-03-19 15:28 2013-12-13 11:22
Reporter Nazgul View Status public  
Assigned To obones
Priority normal Resolution suspended  
Status resolved   Product Version 3.40
Summary 0005838: TJvCustomOutlookBar.GetButtonAtPos can return wrong value (patch included)
Description TJvCustomOutlookBar.GetButtonAtPos can sometimes return an incorrect value.
Additional Information To fix this issue change TJvCustomOutlookBar.GetButtonAtPos to:

function TJvCustomOutlookBar.GetButtonAtPos(P: TPoint): TJvOutlookBarButton;
var
  I, H: Integer;
  R, B: TRect;
begin
  // this always returns the button in the visible part of the active page (if any)
  Result := nil;
  if (ActivePageIndex < 0) or (ActivePageIndex >= Pages.Count) then
    Exit;
// B := GetButtonRect(ActivePageIndex, 0);
  H := GetButtonHeight(ActivePageIndex);
  R := GetPageRect(ActivePageIndex);
  for I := 0 to Pages[ActivePageIndex].Buttons.Count - 1 do
  begin
    B := GetButtonRect(ActivePageIndex, I);
    if PtInRect(B, P) then
    begin
      Result := Pages[ActivePageIndex].Buttons[I];
      Exit;
    end;
    OffsetRect(B, 0, H);
    if B.Top >= R.Bottom then
      Break;
  end;
end;
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0019842)
obones (administrator)
2012-06-11 17:23

Please provide the zipped sources of a sample application showing this.
(0020767)
obones (administrator)
2013-12-13 11:22

No news, suspending the issue

- Issue History
Date Modified Username Field Change
2012-03-19 15:28 Nazgul New Issue
2012-06-11 17:23 obones Note Added: 0019842
2012-06-11 17:23 obones Status new => feedback
2013-12-13 11:22 obones Note Added: 0020767
2013-12-13 11:22 obones Status feedback => resolved
2013-12-13 11:22 obones Resolution open => suspended
2013-12-13 11:22 obones Assigned To => obones


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker