Sign in to follow this  
Followers 0
SuddenGunfire

GUI Close Help

10 posts in this topic

Okay basically I have added an "about" button to my program and it loads fine, but when I close the GUI that is created by clicking the "about" button it closes my whole program. I only want it to close the "about" GUI.

Any help would be appreciated.

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

I had the same problem once, and I remember I solved by using a different variable for the GuiGetMsg() function.

Notice that in the main part of the program, you call it $nMsg. Then, in the About part, you use $nMsg again to query the status of the About GUI.

Also, in the second While/Wend loop, I added the following to my script:

While 1
        $mMsg = GUIGetMsg()
        Switch $mMsg
            Case $GUI_EVENT_CLOSE
                GUIDelete($About)
                ExitLoop
        EndSwitch
    WEnd

See if that helps...

Jose

Edited by JoseS

Share this post


Link to post
Share on other sites

I did but i keeps saying "Missing spectator character ()GUIDELETE

^

Share this post


Link to post
Share on other sites

@ JoesS it just closes the whole thing again...

Share this post


Link to post
Share on other sites

Damn, sorry that's what I was doing :D My bad... It works great man!! Thanks

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  
Followers 0