BJJ Posted January 8, 2009 Posted January 8, 2009 Hi I have problem when i press button $close in While 2 GUI window hide thats good but i can't press button $close again how i can back to While 1 after hide Gui window There is part of code case $nMsg = $about $Form2 = GUICreate("About", 166, 175, 447, 286) $logo2 = GUICtrlCreatePic("C:\D & S\Prezes\Pulpit\www\AutoIT\tła\tlo1.jpg", 0, 0, 185, 193, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $close = GUICtrlCreateButton("Close", 104, 144, 57, 25, 0) GUICtrlSetState($logo2, $GUI_DISABLE) ;blokowanie obrazka bez tego buttony nie dzialaja Guisetstate() ;Dziala close ale teraz nie mozna drogi raz otworzyc tego okna" While 2 $nMsg = GUIGetMsg() select case $nMsg = $GUI_EVENT_CLOSE GUIDelete() Exit case $nMsg = $close GUISetState(@SW_HIDE) EndSelect WEnd EndSelect WEnd Thanks for help
Achilles Posted January 8, 2009 Posted January 8, 2009 Hi I have problem when i press button $close in While 2 GUI window hide thats good but i can't press button $close again how i can back to While 1 after hide Gui window There is part of code case $nMsg = $about $Form2 = GUICreate("About", 166, 175, 447, 286) $logo2 = GUICtrlCreatePic("C:\D & S\Prezes\Pulpit\www\AutoIT\tła\tlo1.jpg", 0, 0, 185, 193, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $close = GUICtrlCreateButton("Close", 104, 144, 57, 25, 0) GUICtrlSetState($logo2, $GUI_DISABLE) ;blokowanie obrazka bez tego buttony nie dzialaja Guisetstate() ;Dziala close ale teraz nie mozna drogi raz otworzyc tego okna" While 2 $nMsg = GUIGetMsg() select case $nMsg = $GUI_EVENT_CLOSE GUIDelete() Exit case $nMsg = $close GUISetState(@SW_HIDE) [b]Exitloop[/b] EndSelect WEnd EndSelect WEnd Thanks for helpNote the ExitLoop I added. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
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