Syntaxe Posted December 30, 2007 Share Posted December 30, 2007 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 Link to comment Share on other sites More sharing options...
Syntaxe Posted December 30, 2007 Author Share Posted December 30, 2007 Is there noone so can help me? Link to comment Share on other sites More sharing options...
BigDod Posted December 30, 2007 Share Posted December 30, 2007 #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 Link to comment Share on other sites More sharing options...
Syntaxe Posted December 30, 2007 Author Share Posted December 30, 2007 Thanks!!! You have no idea how long I bean waiting for such answer Thank you thank you thank you! Link to comment Share on other sites More sharing options...
BigDod Posted December 30, 2007 Share Posted December 30, 2007 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 Link to comment Share on other sites More sharing options...
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