Jump to content
Sign in to follow this  
houseonfire

Changing the default size of a GUI

Recommended Posts

houseonfire

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
Valuater

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
houseonfire

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
houseonfire

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
billthecreator

have a variable set at the begining of the script

$e = 1oÝ÷ ÚØ^^*.rXíæè¶Ú'jëh×6If $e = 1 Then
 ;have the change here
 $e = 2
Else
 ;change back
 $e =1
Endif

[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Share this post


Link to post
Share on other sites
houseonfire

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.