Jump to content

Resizing GUI window after GUICreate


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...