Jump to content

Recommended Posts

Posted

I have this problem with my GUI.

The thing is when you push the button the splashtext appers, and when you exit that, you should stand with the mainform again.

When you exit it now, the hole thing close, how can I fix that? :)

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Mainform", 633, 96, 193, 125)
$Label1 = GUICtrlCreateLabel("Here we got our mainform, click on this button :)", 48, 8, 546, 33)
GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Click on me!", 272, 56, 137, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        Case $Button1
            SplashTextOn("","Here we got our splashtext :D Press esc to return...(?)","-1","-1","-1","-1",3,"","","")
    EndSwitch
WEnd
Posted

#include <GUIConstants.au3>

HotKeySet("{ESC}", "Terminate")

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Mainform", 633, 96, 193, 125)
$Label1 = GUICtrlCreateLabel("Here we got our mainform, click on this button ", 48, 8, 546, 33)
GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Click on me!", 272, 56, 137, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        Case $Button1
            SplashTextOn("","Here we got our splashtext  Press esc to return...(?)","-1","-1","-1","-1",3,"","","")
    EndSwitch
WEnd

Func Terminate()
   SplashOff()
EndFunc


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

You are welcome.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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
×
×
  • Create New...