Jump to content

Problems with refreshing a GUI window


Barfly
 Share

Recommended Posts

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:

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...