Page 1 of 1

Programatically Resizing Windows

Posted: Wed May 21, 2014 10:18 pm
by kiwidave
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

Re: Programatically Resizing Windows

Posted: Wed May 21, 2014 10:25 pm
by ts-soft

Re: Programatically Resizing Windows

Posted: Wed May 21, 2014 10:38 pm
by kiwidave
Awww, seriously! How on earth did I miss that? Thanks so much and my apologies for my documentation-blindness :)