Programatically Resizing Windows

Just starting out? Need help? Post your questions and find answers here.
User avatar
kiwidave
User
User
Posts: 13
Joined: Sun Mar 09, 2014 9:27 am
Location: New Zealand

Programatically Resizing Windows

Post 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
Valui ad satanam in computatrum meum invocandum
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Programatically Resizing Windows

Post by ts-soft »

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
kiwidave
User
User
Posts: 13
Joined: Sun Mar 09, 2014 9:27 am
Location: New Zealand

Re: Programatically Resizing Windows

Post by kiwidave »

Awww, seriously! How on earth did I miss that? Thanks so much and my apologies for my documentation-blindness :)
Valui ad satanam in computatrum meum invocandum
Post Reply