ahaning Posted May 14, 2007 Posted May 14, 2007 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.
Emperor Posted May 14, 2007 Posted May 14, 2007 Perhaps take a look at the WinMove() function to resize your GUI.
ahaning Posted May 14, 2007 Author Posted May 14, 2007 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.
ahaning Posted May 15, 2007 Author Posted May 15, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now