View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005838 | JEDI VCL | 00 JVCL Components | public | 2012-03-19 15:28 | 2013-12-13 11:22 |
| Reporter | Nazgul | Assigned To | obones | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | suspended | ||
| Product Version | 3.40 | ||||
| Target Version | Fixed in Version | ||||
| 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. | ||||
| 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 |