Is it at all possible to reposition (drag) the main form with a panel on that main form. The form's border style is set to bsNone, but i still want the user to be able to move the form around on the screen. Any help???
procedure TForm1.MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbLeft then
begin
ReleaseCapture;
self.Perform(WM_SYSCOMMAND,$F012,1);
end
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.