ahmed9100 Posted August 27, 2010 Share Posted August 27, 2010 (edited) hi i wana make a gui inside the same gui like #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 304, 116, 356, 236) $Button1 = GUICtrlCreateButton("Button1", 80, 32, 121, 33, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit ;~ ---------------------------------------- case $Button1 $Form2 = GUICreate("Setting", 333, 206, 266, 172) $Button1 = GUICtrlCreateButton("Button1", 24, 16, 97, 25, $WS_GROUP) $Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 32, 48, 33, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;~ ---------------------------------------- EndSwitch WEnd but it didnt work is there any way to do it ? Edited August 27, 2010 by ahmed9100 Link to comment Share on other sites More sharing options...
kaotkbliss Posted August 27, 2010 Share Posted August 27, 2010 $Form2 = GUICreate("Setting", 333, 206, 266, 172,-1,$Form1) 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
ahmed9100 Posted August 27, 2010 Author Share Posted August 27, 2010 $Form2 = GUICreate("Setting", 333, 206, 266, 172,-1,$Form1)it didn't work it close the 2 form Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 27, 2010 Moderators Share Posted August 27, 2010 ahmed9100,Go and read the Wiki tutorial Managing Multiple GUIs. It will show you how to prevent both GUIs closing when you onlt want to close one. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
ahmed9100 Posted August 28, 2010 Author Share Posted August 28, 2010 ahmed9100,Go and read the Wiki tutorial Managing Multiple GUIs. It will show you how to prevent both GUIs closing when you onlt want to close one. M23thank u Melba2 it works 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