|
-
Jun 8th, 2012, 09:52 AM
#32
New Member
Re: move / resize runtime controls
Hi Paul,
This class is very impressive and so simple to use, just a FYI to anybody having trouble getting this to work with labels (I know I did!) just set the AutoSizeMode to None and it works fine. The API won't work with controls that have any kind of autosizing and this includes anchor.
I have a database program that allows the user to design their own data entry screens, with an IDE very simular to VS but after a while I ran into problems with labels not moving & anchor properties on any control.
If you need to use anchors (i.e Top, Left works fine, but Top, Left, Right will not) just store the control anchors in a variable when it is selected (i.e in mControl_mousedown), then set the control anchor to Top,Left and then restore the original anchor properties in move_mousemove within the If GetCapture=0 statement.
Many Thanks paul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|