Advertisement
appo

Drag the shape on the screen by clicking on any part of the

Dec 27th, 2013
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.24 KB | None | 0 0
  1. procedure TForm3.Image1MouseDown(Sender: TObject; Button: TMouseButton;
  2. Shift: TShiftState; X, Y: Integer);
  3. const
  4. SC_DragMove = $F012; { a magic number }
  5. begin
  6. ReleaseCapture;
  7. perform(WM_SysCommand, SC_DragMove, 0);
  8. end;
  9.  
  10. // Coded by Appo //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement