DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Dragging components at run-time

This piece of code shows how to drag a TPanel component Panel1 at run-time:

procedure Form1.MouseDown(Sender: Tobject;
                           Button: TMouseButton;
                           Shift: TShiftState;
                           X, Y: Integer);
 const
   SC_DragMove = $F012;
 begin
   ReleaseCapture;
   Panel1.Perform(WM_SysCommand, SC_DRAGMOVE, 0);
 end;

Generated 20:01:21 on Oct 22, 2020