Changeset 212 for branches/highdpi/Packages/CevoComponents/DrawDlg.pas
- Timestamp:
- May 9, 2020, 9:35:25 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/DrawDlg.pas
r210 r212 128 128 {$IFDEF LINUX} 129 129 // HitTest is not supported under Linux GTK2 so use form inside move mechanizm 130 NewFormPos := ScreenToClient( Mouse.CursorPos);130 NewFormPos := ScreenToClient(DpiMouse.CursorPos); 131 131 if (NewFormPos.X >= 0) and (NewFormPos.X < Width) and 132 132 (NewFormPos.Y >= 0) and (NewFormPos.Y < Height) then begin 133 133 MoveMousePos := ClientToScreen(Point(X, Y)); 134 134 MoveFormPos := Point(Left, Top); 135 MousePosNew := Mouse.CursorPos;135 MousePosNew := DpiMouse.CursorPos; 136 136 // Activate move only if mouse position was not changed during inherited call 137 137 if (MousePosNew.X = MoveMousePos.X) and (MousePosNew.Y = MoveMousePos.Y) then begin
Note:
See TracChangeset
for help on using the changeset viewer.