Jump to content
Sign in to follow this  
Syntaxe

SplashText in Form issue

Recommended Posts

Syntaxe

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

Share this post


Link to post
Share on other sites
BigDod

#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



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites
Syntaxe

Thanks!!! :P:blink::wub:

You have no idea how long I bean waiting for such answer :P

Thank you thank you thank you! :)


Share this post


Link to post
Share on other sites
BigDod

You are welcome.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.