khang0001 Posted February 23, 2011 Share Posted February 23, 2011 #include <GUIConstantsEx.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode $mainwindow = GUICreate("Hello World", 200, 100) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUICtrlCreateLabel("Hello world! How are you?", 30, 10) $okbutton = GUICtrlCreateButton("OK", 70, 50, 60) GUICtrlSetOnEvent($okbutton, "OKButton") GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") GUISwitch($mainwindow) GUISetState(@SW_SHOW) While 1 Sleep(1000) WEnd Func OKButton() GUICreate("next", 500,500,500,500) GUISetState() EndFunc Func CLOSEClicked() If @GUI_WINHANDLE = $mainwindow Then Exit EndIf EndFunc when I click the button OK. It make 1 GUI next. I click 10 times in button Ok. it make 10 Gui next. how can I click 10 times in button OK. and it make 1 GUI next. and how can i close the GUI next independence with GUI hello world. please help meeeeee Link to comment Share on other sites More sharing options...
JoHanatCent Posted February 23, 2011 Share Posted February 23, 2011 when I click the button OK. It make 1 GUI next. I click 10 times in button Ok. it make 10 Gui next. how can I click 10 times in button OK. and it make 1 GUI next. and how can i close the GUI next independence with GUI hello world. please help meeeeeeDid you make time to go through this first?Multi Gui 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