houseonfire Posted December 8, 2008 Posted December 8, 2008 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.
Valuater Posted December 8, 2008 Posted December 8, 2008 (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 December 8, 2008 by Valuater
houseonfire Posted December 8, 2008 Author Posted December 8, 2008 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.
billthecreator Posted December 8, 2008 Posted December 8, 2008 just add this under ever control that you dont want to move. GUICtrlSetResizing(-1, $GUI_DOCKALL) [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap
houseonfire Posted December 8, 2008 Author Posted December 8, 2008 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?
billthecreator Posted December 8, 2008 Posted December 8, 2008 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
houseonfire Posted December 8, 2008 Author Posted December 8, 2008 It worked. And of course it did. Thank you very much
billthecreator Posted December 8, 2008 Posted December 8, 2008 glad to help [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap
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