A Cool and Easy Method for Resizing and Moving Controls
Tutorials Shared by the Internet Community
A Cool and Easy Method for Resizing and Moving ControlsIn the WinAPI help file I noticed that there was a standard SC_SIZE parameter.
Total Hits - 36796
Total Votes - 111 votes
Vote Up - 48 votes
Vote Down - 63 votes
Domain - www.delphi-central.com
Category - Delphi/Delphi Misc
Submitted By - Shekhar
Submitted on - 2008-04-16 06:52:39
I was hacking at one of my software projects and was trying to come up with a way to allow the user to resize my controls onscreen with the mouse. I knew the way to code it, but didn't care for it very much. While I was eating my supper (PIZZA!) I was flipping through a couple of TI's I had downloaded from Borland's sight. TI2909 caught my eye, it described a way to make a control moveable at run time by using a magic number as a WPARAM to a WM_SYSCOMMAND message. The value was a variation on the standard SC_MOVE parameter (SC_MOVE+2). I tried it and it worked."
Please use the following link to visit the site. There is a possibility that this content has been removed from the given URL or may be this site has been shut down completely.http://www.delphi-central.com/resize.aspx