armoros Posted April 12, 2012 Share Posted April 12, 2012 Well my friends i have an issue with my Tab Control, I have 2 tab sheets, in first i put some buttons but they are shown in both tab sheets, what i must do to have the buttons only in the 1 tab.... #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 690, 674, 197, 13) $MenuItem1 = GUICtrlCreateMenu("&File") $MenuItem2 = GUICtrlCreateMenuItem("About", $MenuItem1) $MenuItem3 = GUICtrlCreateMenuItem("Exit", $MenuItem1) $CMD_WINDOW = GUICtrlCreateEdit("", 0, 217, 688, 289, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY)) GUICtrlSetData(-1, "") GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) $Button1 = GUICtrlCreateButton("Button1", 24, 560, 75, 25) $Button2 = GUICtrlCreateButton("Button2", 104, 560, 75, 25) $Button3 = GUICtrlCreateButton("Button3", 184, 560, 75, 25) $Button4 = GUICtrlCreateButton("Button4", 264, 560, 75, 25) $Button5 = GUICtrlCreateButton("Button5", 344, 560, 75, 25) $Button6 = GUICtrlCreateButton("Button6", 504, 560, 75, 25) $Button7 = GUICtrlCreateButton("Button7", 584, 560, 75, 25) $Button8 = GUICtrlCreateButton("Button8", 424, 560, 75, 25) $Tab1 = GUICtrlCreateTab(8, 520, 673, 121) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
Skitty Posted April 12, 2012 Share Posted April 12, 2012 $Tab1 = GUICtrlCreateTab(8, 520, 673, 121) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $Button1 = GUICtrlCreateButton("Button1", 24, 560, 75, 25) $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") GUICtrlCreateTabItem("") Link to comment Share on other sites More sharing options...
armoros Posted April 12, 2012 Author Share Posted April 12, 2012 $Tab1 = GUICtrlCreateTab(8, 520, 673, 121)$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")$Button1 = GUICtrlCreateButton("Button1", 24, 560, 75, 25)$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")GUICtrlCreateTabItem("")With this kind of support i feel that i should pay for the help i get... Thank you very much ApudAngelorum for you response...that solved my prob and i learnd another thing.. [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 12, 2012 Moderators Share Posted April 12, 2012 armoros,You might find the Tabs tutorial in the Wiki of interest. 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...
Skitty Posted April 12, 2012 Share Posted April 12, 2012 With this kind of support i feel that i should pay for the help i get... Thank you very much ApudAngelorum for you response...that solved my prob and i learnd another thing..haha, it's just a simple error. Link to comment Share on other sites More sharing options...
armoros Posted April 12, 2012 Author Share Posted April 12, 2012 armoros,You might find the Tabs tutorial in the Wiki of interest. m23Yeah the true is that i dont read the tutorial or help...this is a mistake..thats why i ask so much and put extra load to ur servers [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 12, 2012 Moderators Share Posted April 12, 2012 armoros, i dont read the tutorial or helpThen I suggest you start - there are very good tutorials here and here and reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will, unsuprisingly, help you enormously. 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...
armoros Posted April 12, 2012 Author Share Posted April 12, 2012 armoros, Then I suggest you start - there are very good tutorials here and here and reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will, unsuprisingly, help you enormously. M23 Yes i must and i will..thank you Melba23 for the help and the links.. [font="verdana, geneva, sans-serif"] [/font] 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