ScriptCrafter Posted March 14, 2007 Share Posted March 14, 2007 Hello, Im a bit new to AutoIt, and have done a fair share of research into this question before asking. I have two tabs in my script $TAB1 = GuiCtrlCreateTab (THIS IS TAB1) $TAB2 = GuiCtrlCreateTab (THIS IS TAB2) When applying a function in the script that has GuiCtrlCreateGroup, it makes the group for both tabs. Is there a way to specify the GuiCtrlCreateGroup to only apply to one tab and not the GuiCreate window? Thanks -ScriptCrafter Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 14, 2007 Share Posted March 14, 2007 I'm not sure how to help in this. It seems a parameter should be added for a parent. Link to comment Share on other sites More sharing options...
ScriptCrafter Posted March 14, 2007 Author Share Posted March 14, 2007 Pretty please :-) Link to comment Share on other sites More sharing options...
SadBunny Posted March 14, 2007 Share Posted March 14, 2007 (edited) Pretty please :-) You mean like this? (I got the help for GuiCtrlCreateGroup and then I added $tabSystem, $tab1 and $tab2. Are you sure you first used GUICtrlCreateTab to create the tab system, and then actually created actual tabs with GUICtrlCreateTabItem? Seems to work for me...) #include <GUIConstants.au3> GUICreate("My GUI group") ; will create a dialog box that when displayed is centered $tabSystem = GUICtrlCreateTab(1,1,400,400) $tab1 = GUICtrlCreateTabItem("tab 1") $tab2 = GUICtrlCreateTabItem("tab 2") GUICtrlCreateGroup ("Group 1", 190, 60, 90, 140) $radio_1 = GUICtrlCreateRadio ("Radio 1", 210, 90, 50, 20) $radio_2 = GUICtrlCreateRadio ("Radio 2", 210, 110, 60, 50) GUICtrlCreateGroup ("",-99,-99,1,1) ;close group GUISetState () ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend /edit: forgot to put code in autoit tags. Edited March 14, 2007 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
ScriptCrafter Posted March 14, 2007 Author Share Posted March 14, 2007 The tab variable works great, but like I said. When you apply a GuiCtrlCreateGroup statement to a function, when the function is called, it applies that group to all tabs. Link to comment Share on other sites More sharing options...
ScriptCrafter Posted March 14, 2007 Author Share Posted March 14, 2007 Figured it out FYI to anybody who gets stuck on this. Use the GUIswitch command -ScriptCrafter 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