Krakatoa Posted August 14, 2010 Share Posted August 14, 2010 Problem with close three opening windowsOpen window example1 ... open window example2 ... close (storno) example2 ... close (storno) example1= OKOpen window example1 ... open window example2 ... open window example3 ... close (storno) example3 (no problem) ... close (storno) example2 = PROBLEM ... close example2 no close :_-(Please, Help! No problem with:Open window example1 ... open window example2 ... open window example3 ... close (storno) example3 ... close (storno) example2 ... close (storno) example1problem script:expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Example1() Func Example1() Local $button01, $button02, $msg GUICreate("Example1", 300, 150) $button01 = GUICtrlCreateButton("New", 50, 70, 50, 20) $button02 = GUICtrlCreateButton("Storno", 200, 70, 50, 20) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $button01 Then Example2() If $msg = $button02 Then ExitLoop If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc Func Example2() Local $button01, $button02, $msg GUICreate("Example2", 300, 150) $button01 = GUICtrlCreateButton("New", 50, 70, 50, 20) $button02 = GUICtrlCreateButton("Storno", 200, 70, 50, 20) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $button01 Then Example3() If $msg = $button02 Then ExitLoop If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc Func Example3() GUICreate("Example3", 300, 150) Local $button02, $msg $button02 = GUICtrlCreateButton("Storno", 200, 70, 50, 20) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $button02 Then ExitLoop If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFuncThanks, help. Link to comment Share on other sites More sharing options...
Krakatoa Posted August 14, 2010 Author Share Posted August 14, 2010 :-)No Problem:...$GUICreate = GUICreate ("Example2", 300, 150)...GUIDelete ($GUICreate)... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now