Jump to content

Closing one of two created windows

Recommended Posts

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.

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.


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...