Jump to content
Sign in to follow this  
Barfly

Problems with refreshing a GUI window

Recommended Posts

Barfly

I have a complicated set of GUI windows, each of them are in functions that call each other. I can refresh a window by doing either

GUISetState(@SW_Hide, $myGUI)

MyGUI()

OR

GUIDelete($MyGui)

MyGUI()

But if the user tries to close the window using the title bar close button, he will have to press this several times. Once for everytime the window was refreshed. Why???? :lmao:

Share this post


Link to post
Share on other sites
Barfly

But if the user tries to close the window using the title bar close button, he will have to press this several times. Once for everytime the window was refreshed. Why???? :lmao:

;) I have used:

case $msg = $GUI_EVENT_CLOSE
GUIClose($MyGUI) 
Exit

And this seems to work OK. Is probably not the 'correct' way o:) , but it suits my purposes.

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.