AJFleming
asked on
Moving window without a taskbar
I'm creating an application which uses the bsNone Borderstyle. How can I give the user the ability to move, but not resize this window? I'm not trying to do anything fancy lke a solid drag or anything, all I want is to be able to move the window.
ASKER
Sorry, maybe I wasn't clear enough in my question. The lack of resize is already sorted out, what I need is a way to drag a form without it having a title bar (or having an invisible title-bar.) using a bsNone border style doesn't appear to let the user move the window...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks... That works great...
In the OnResize Event of the form:
var X,Y: Integer;
X = Form1.Width;
Y = Form1.Height
Form1.Width := X;
Form1.Height := Y;
This will allow the user to resize the window but as soon as they let go of the mouse the window will "snap back" to it's origional size.
Good luck with your project!
Pegasus;