Jump to content
Sign in to follow this  
BitByteBit

Resize Active GUI

Recommended Posts

BitByteBit

I have a gui, on button click I want to increase the size.

I've looked through the help file, googled and searched the forums.

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1_1 = GUICreate("MTSE 2", 370, 55, 303, 71)
GUISetBkColor(0x000080)
$TP = GUICtrlCreateButton("TP", 75, 30, 75, 25, $WS_GROUP)
GUICtrlSetBkColor (-1, 0x000080)
GUICtrlSetFont(-1, 12, 400, 4, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW)






While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $TP
        TP()
    EndSwitch
WEnd


Func TP()
$Form1_1 = GUICreate("MTSE 2", 684, 476, 0, 0) ;This doesn't work, obviously, it just creates a new window
GUISetState(@SW_SHOW)
EndFunc
Edited by BitByteBit

Share this post


Link to post
Share on other sites
BitByteBit

I found the command, just incase anybody finds this topic, you can use WinMove to resize.

Share this post


Link to post
Share on other sites
Mison

Thanks for sharing.. :)


Hi ;)

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  

×