Changeset 413 for trunk/Packages/CevoComponents/DrawDlg.pas
- Timestamp:
- Nov 4, 2021, 4:26:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/DrawDlg.pas
r408 r413 102 102 else 103 103 begin 104 Pos := Point( Integer(Msg.LParam and $ffff),105 Integer((Msg.LParam shr 16) and $ffff));104 Pos := Point(ScaleFromNative(Integer(Msg.LParam and $ffff)), 105 ScaleFromNative(Integer((Msg.LParam shr 16) and $ffff))); 106 106 if Pos.Y >= Top + TitleHeight then 107 107 Msg.Result := HTCLIENT … … 128 128 procedure TDrawDlg.MouseDown(Button: TMouseButton; Shift: TShiftState; X, 129 129 Y: Integer); 130 var 131 MousePos1: TPoint; 132 MousePos2: TPoint; 130 133 {$IFDEF LINUX} 131 var132 134 MousePosNew: TPoint; 133 135 NewFormPos: TPoint; 134 136 {$ENDIF} 135 137 begin 136 inherited; 138 MousePos1 := Mouse.CursorPos; 139 inherited; 140 MousePos2 := Mouse.CursorPos; 137 141 {$IFDEF LINUX} 138 142 // Only if client is not doing own mouse move handling … … 147 151 MousePosNew := Mouse.CursorPos; 148 152 // Activate move only if mouse position was not changed during inherited call 149 if (MousePos New.X = MoveMousePos.X) and (MousePosNew.Y = MoveMousePos.Y) then begin153 if (MousePos1.X = MousePos2.X) and (MousePos1.Y = MousePos2.Y) then begin 150 154 MoveActive := True; 151 155 end;
Note:
See TracChangeset
for help on using the changeset viewer.