Sign in to follow this  
Followers 0
Barfly

Problems with refreshing a GUI window

3 posts in this topic

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



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

sounds like your not refreshing guis, but creating new guis, this would cause the user to have to close multple times


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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