I'd like to offer in our new look a feel rewrite the ability for a customer to set at run time their preferences for the location of data fields on their screen. Some like a windowed look, others full screen and of course a couple of different font sizes.
I've figured out how to allow moving a textbox around by superclassing it and trapping ctrl-r,u,d,l keys and Control set loc, then saving the preference for that user when the program ends or a right-click popup menu.
Having some trouble with using the mouse to click and drag a control to a new position. When the mouse is captured by the control, I get one set of x,y values and when it's on the parent window I get another. Is there a way to do this with a mouse.
I was thinking of just clicking a field to set focus, then clicking where I want it to go using the %WM_MOUSEMOVE event. That would be easy, but I would like to have them click and drag a textbox since this is more the norm.
Of course I would limit this functionality to admin level user and turn it on or off using a context menu.
Bob Mechler
I've figured out how to allow moving a textbox around by superclassing it and trapping ctrl-r,u,d,l keys and Control set loc, then saving the preference for that user when the program ends or a right-click popup menu.
Having some trouble with using the mouse to click and drag a control to a new position. When the mouse is captured by the control, I get one set of x,y values and when it's on the parent window I get another. Is there a way to do this with a mouse.
I was thinking of just clicking a field to set focus, then clicking where I want it to go using the %WM_MOUSEMOVE event. That would be easy, but I would like to have them click and drag a textbox since this is more the norm.
Of course I would limit this functionality to admin level user and turn it on or off using a context menu.
Bob Mechler
Comment