When the child GUI window is destroyed, which one is the current default window?
In the following example, when the Close button of the child window is clicked, the child window is destroyed, but at this time, the parent window GUI1 does not seem to be the default window.
Then, after the ButtonClose subroutine is executed, will GUI1 become the default window, or will GUI1 become the default window only after the GUI1 window is activated (such as clicking)?
Code: Select all
Gui, Add, Text, w200 vGui_1 Gui, Add, Button, x0, Open Gui, Show, h100 w200 return ButtonOpen: Gui, 1:+Disabled Gui, 2:Default Gui, +Owner1 Gui, Add, Button,, Close Gui, Show, h50 w100 return 2ButtonClose: Gui, 1:-Disabled Gui, 2:Destroy ; Gui, 1:Default GuiControl, Text, Gui_1, TEST return