HI everybody,
I am trying to move a control, like a button on the form
For a specific control it is working like a button, textfield it is working.
But I want to have it in general, so that if u clik on a control that u can move it on the form
I have included the project as zip.
THX anyway.
Loading
FroglegPosted Dec 18, 2011, 3:59 PM
Hi Sam
After 2 years early retirement, I rejoined the working class so I don't have the time anymore
Sam HobbsPosted Dec 15, 2011, 9:16 PM
Albert, I see no reason why it is not possible to extend Frogleg's code to do what you need done.
As an advanced solution, it might be possible to process the WM_NCHITTEST message and return HTCAPTION but that is probabaly more work than it seems to be.
albert albertPosted Dec 15, 2011, 3:15 PM
But that is only for 1 control.
I mean If u put an extra control on the form u cant move it.
And now only the textfield can move, but not the button.
So it has to be dynamical.
THX
FroglegPosted Dec 15, 2011, 2:42 PM