mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
TPopupMenu.Popup needs x,y position relative to screen, not to form
git-svn-id: trunk@4763 -
This commit is contained in:
parent
ed636973a6
commit
cc6d8c284e
@ -1116,7 +1116,7 @@ var
|
||||
Shift: TShiftState;
|
||||
SenderParentForm: TCustomForm;
|
||||
RubberBandWasActive: boolean;
|
||||
ParentClientOrigin: TPoint;
|
||||
ParentClientOrigin, PopupPos: TPoint;
|
||||
SelectedCompClass: TRegisteredComponent;
|
||||
SelectionChanged, NewRubberbandSelection: boolean;
|
||||
|
||||
@ -1346,7 +1346,8 @@ Begin
|
||||
PointSelect;
|
||||
PopupMenuComponentEditor:=GetComponentEditorForSelection;
|
||||
BuildPopupMenu;
|
||||
FPopupMenu.Popup(MouseUpPos.X,MouseUpPos.Y);
|
||||
PopupPos := Form.ClientToScreen(MouseUpPos);
|
||||
FPopupMenu.Popup(PopupPos.X,PopupPos.Y);
|
||||
end;
|
||||
|
||||
DisableRubberBand;
|
||||
|
Loading…
Reference in New Issue
Block a user