ahmed9100 0 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 Share this post Link to post Share on other sites
kaotkbliss 146 Posted August 27, 2010 $Form2 = GUICreate("Setting", 333, 206, 266, 172,-1,$Form1) 010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueekWe're gonna need another Timmy! Share this post Link to post Share on other sites
ahmed9100 0 Posted August 27, 2010 $Form2 = GUICreate("Setting", 333, 206, 266, 172,-1,$Form1)it didn't work it close the 2 form Share this post Link to post Share on other sites
Melba23 3,456 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 Share this post Link to post Share on other sites
ahmed9100 0 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 Share this post Link to post Share on other sites