Programatically Resizing Windows
Posted: Wed May 21, 2014 10:18 pm
Hi all,
This one's got me stumped I'm afraid, and I suspect that there's a real simple answer to it but it's simply eluded me, so if anyone would be so kind as to point me in the right direction I would be so very grateful...
What I want to do is, when a user pushes a toggle button, the window width increases so that on the right hand side a text box displays that has some help text in it. When they push the button again the window width decreases, effectively hiding the box.
I just can't figure out how to change the width of the active window. ResizeGadget doesn't work as it's a window, not a gadget, and I haven't had any luck trawling the posts for examples of window resizing. There's plenty of info about openwindow etc, but I need this to work on an already opened screen as the users will have unsaved data I need to retain.
Can anyone help please?
Many thanks,
David
This one's got me stumped I'm afraid, and I suspect that there's a real simple answer to it but it's simply eluded me, so if anyone would be so kind as to point me in the right direction I would be so very grateful...
What I want to do is, when a user pushes a toggle button, the window width increases so that on the right hand side a text box displays that has some help text in it. When they push the button again the window width decreases, effectively hiding the box.
I just can't figure out how to change the width of the active window. ResizeGadget doesn't work as it's a window, not a gadget, and I haven't had any luck trawling the posts for examples of window resizing. There's plenty of info about openwindow etc, but I need this to work on an already opened screen as the users will have unsaved data I need to retain.
Can anyone help please?
Many thanks,
David