genuinemails.com

Sabtu, 20 Februari 2010

Move a form does not have caption bar (Delphi)

To move a form that does not have a caption bar, add the following code in the onMouseDown event.

procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin

ReleaseCapture;
SendMessage(Form1.Handle, wm_SysCommand,$f012,0);

end;

Related Posts by Categories



Widget by Hoctro | Jack Book

Your cOmment"s Here! Hover Your cUrsOr to leave a cOmment.

BlogCatalog

My Sponsor