Jump to content
Sign in to follow this  
ahaning

Resizing GUI window after GUICreate

Recommended Posts

ahaning

Hello.

I'm trying to grow and shrink a window based on how many fields are in the window.

In the screenshot attached, when the user clicks More Copy Boxes, the window should grow by a bit and another text box and Copy button should appear. When they click Fewer Copy Boxes, the opposite should happen.

I'm not sure how to do this. I tried GUISetCoord without success. Would this be the right function?

My other option would be to delete the window and recreate it, but this looks messy.

post-12576-1179119556_thumb.png

Share this post


Link to post
Share on other sites
Emperor

Perhaps take a look at the WinMove() function to resize your GUI.

Share this post


Link to post
Share on other sites
ahaning

Perhaps take a look at the WinMove() function to resize your GUI.

Thanks. I think this should work.

Is it possible to use the window ID that was returned by GUICreate to move the window? I could move it based on the window title, but using the unique ID would feel better.

Share this post


Link to post
Share on other sites
ahaning

Is it possible to use the window ID that was returned by GUICreate to move the window? I could move it based on the window title, but using the unique ID would feel better.

Well, some experimenting shows that I just put the window ID variable in place of the window title.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×