Sign in to follow this  
Followers 0
Ajan

Closing one of two created windows

2 posts in this topic

I created a program which operates on one main window, it also has a button which opens second window. When I open the second window and clic on the close button in the corner of the first window the program closes the second window. It is rarely used as people would usually close the second window but still I guess it is some king of flaw.

I don't know how to change it though.

I would appreciate any help.

Share this post


Link to post
Share on other sites



To me this wouldn't be a flaw, with-out seeing your code I'm guessing that the main window does an exit if $GUI_EVENT_CLOSE is triggered.

If you don't wan't them closing the app, you could hide the main window until the second window closes.


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