• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

drag form by grabbing form or a control (Sticky Form)

Hello,

I want to make my form movable by grabbing the form or one of the controls.

IE: no titlebar
0
fibdev
Asked:
fibdev
1 Solution
 
TNameCommented:

Hi, try this in the form's  (or any of the form's controls) MouseDown procedure (change 'Form1' accordingly):

//if Button=mbLeft then begin   {if the form shouldn't be movable by pressing the right mouse button...}
 ReleaseCapture;
 SendMessage(Form1.Handle, WM_SYSCOMMAND, $F012, 0);
//end;
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now