GarnetDagger Posted May 15, 2016 Share Posted May 15, 2016 this is my example code I try to make to work, But i got no idea how to target a $child window when program already runs. $hlist = GUICtrlCreateList("Your momo | hihihiih",100,100,100,100) ; I want to this to appear on $guichild1 (or any child I specifically assign or target) #include <GUIConstantsEx.au3> ; Create parent $hGUI = GUICreate("Parent", 500, 500) $hButton_Child = GUICtrlCreateButton("Child", 10, 10, 80, 30) $hButton_Test = GUICtrlCreateButton("Test", 10, 50, 80, 30) $hButton_Test2 = GUICtrlCreateButton("Test2", 10, 90, 80, 30) GUISetState() ; Create child $hGUI_Child = GUICreate("Child", 400, 400) $hGUI_Child2 = GUICreate("Child2", 400, 400) GUISetState(@SW_HIDE) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $hButton_Test MsgBox(0, "Test", "You pressed the button!") $hlist = GUICtrlCreateList("Your momo | hihihiih",100,100,100,100) ;I want to let this appear on $hGUI_Child and able to delete it also properly Case $hButton_Child GUISetState(@SW_SHOW, $hGUI_Child) GUISetState(@SW_SHOW, $hGUI_Child2) Case $hButton_Test2 GUICtrlDelete($hlist ) EndSwitch WEnd I hope my question is clear and thx a lot! Link to comment Share on other sites More sharing options...
AutoBert Posted May 15, 2016 Share Posted May 15, 2016 Use GUISwitch to switch to needed 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