Sign in to follow this  
Followers 0
houseonfire

Changing the default size of a GUI

8 posts in this topic

Is it possible to change the size of a GUI?

Example:

The GUI is 400px X 350px

and then you click a button that changes it to 400px X 450px.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Function WinMoveWinMove ( "title", "text", x, y [, width [, height[, speed]]] )

Parameters

title The title of the window to move/resize. See Title special definition.

text The text of the window to move/resize. x X coordinate to move to.

y Y coordinate to move to. width [optional] New width of the window.

height [optional] New height of the window.

speed [optional] the speed to move the windows in the range 1 (fastest) to 100 (slowest). If not defined the move is instantaneous.

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

This actually works. But when I do this, it moves all my items on my GUI.

Thank you very much for trying.

I'm making something like a menu, that when you click the expand button, it adds to the GUI, and reveals an options menu.

I'd show you an example, or started script, but I have nothing, and have no clue how to even start.

Share this post


Link to post
Share on other sites

just add this under ever control that you dont want to move.

GUICtrlSetResizing(-1, $GUI_DOCKALL)
That worked perfectly. Thank you very much.

Is it possible to make it revert back to the original size using the same button?

Share this post


Link to post
Share on other sites

It worked. And of course it did.

Thank you very much

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  
Followers 0