Jump to content

Resize Active GUI


BitByteBit
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...