Sobiech Posted May 7, 2010 Share Posted May 7, 2010 I created this script for $i = 72 To 470 Step +20 $Label[$j] = GUICtrlCreateLabel("", 56, $i, 106, 17) $j = $j + 1 Next its rlly nice but... this will create labels on inputs, lists and other elements... just big mess on GUI How to forward created Labels to specyfic TabSheet? This world is crazy Link to comment Share on other sites More sharing options...
GEOSoft Posted May 7, 2010 Share Posted May 7, 2010 The GUI isn't as big a mess as that code. That part aside, the Labels have to be created on each TabItem $sTab GUIctrlCreateTab(0, 0, 300, 120) $Tab_0 = GUICreateTabItem("Tab 1") ;; create some labels here $Tab_1 = GUICtrlCreateTabItem("Tab 2") ;; Create some more labels or other controls here $tab_2 = GUICtrlCreatTabItem)"Tab 3") ;; Do it again GUIctrlCreateTabItem("") ;; Close out the Tab items George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 7, 2010 Moderators Share Posted May 7, 2010 Sobiech,As far as I know, controls for a particular tabitem have to be created within the overall tab creation structure:GUICreate("Tab text", 250, 150) ; Create tab structure $tab = GUICtrlCreateTab(10, 10, 200, 100) $tab0 = GUICtrlCreateTabItem("tab0") ; Create the controls for tab0 here <<<<<<<<<<<<<<<<<<<<<<<<<<<< $tab1 = GUICtrlCreateTabItem("tab1") ; Create the controls for tab1 here <<<<<<<<<<<<<<<<<<<<<<<<<<<< $tab2 = GUICtrlCreateTabItem("tab2") ; Create the controls for tab2 here <<<<<<<<<<<<<<<<<<<<<<<<<<<< ; Close tab structure GUICtrlCreateTabItem("") GUISetState()If you create them outside these areas they overwrite the tab. 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...
GEOSoft Posted May 7, 2010 Share Posted May 7, 2010 Sobiech, As far as I know, controls for a particular tabitem have to be created within the overall tab creation structure: GUICreate("Tab text", 250, 150) ; Create tab structure $tab = GUICtrlCreateTab(10, 10, 200, 100) $tab0 = GUICtrlCreateTabItem("tab0") ; Create the controls for tab0 here <<<<<<<<<<<<<<<<<<<<<<<<<<<< $tab1 = GUICtrlCreateTabItem("tab1") ; Create the controls for tab1 here <<<<<<<<<<<<<<<<<<<<<<<<<<<< $tab2 = GUICtrlCreateTabItem("tab2") ; Create the controls for tab2 here <<<<<<<<<<<<<<<<<<<<<<<<<<<< ; Close tab structure GUICtrlCreateTabItem("") GUISetState() If you create them outside these areas they overwrite the tab. M23 Okay, that's the one time you're allowed to be right today. And you wasted it so early too. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 7, 2010 Moderators Share Posted May 7, 2010 George, Is that 45 minutes up so soon? 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...
GEOSoft Posted May 7, 2010 Share Posted May 7, 2010 George, Is that 45 minutes up so soon? M23A long time ago and I even gave you some bonus time. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Sobiech Posted May 7, 2010 Author Share Posted May 7, 2010 (edited) Thanks 4 all now it's working #Region ### START Koda GUI section ### Form=e:\programy\inne\autoit3\scripts\replace\d2bs.kxf $Form1 = GUICreate("D2BS GUI Config Editor v1.0 by InFlames", 748, 492, 192, 124) $Tab1 = GUICtrlCreateTab(16, 8, 705, 465) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("State") $Group1 = GUICtrlCreateGroup("Active Scripts", 40, 40, 265, 417) GUICtrlCreateGroup("", -99, -99, 1, 1) $j = 0 for $i = 72 To 470 Step +20 $Label[$j] = GUICtrlCreateLabel("", 56, $i, 106, 17) $j = $j + 1 Next I have last question about rules... This isnt game bot, this is simple configurator FOR bot, who never was on this forum. Something like autoconfig for program, who shouldnt posted here it is legal? I am gonna watch MMA fight, tonight Pudzianowski vs Kawaguchi http://www.se.pl/media/pics/2010/05/06/KSW_MS_00022_580x467.jpg Hope 4 Polish fighter Edited May 7, 2010 by Sobiech This world is crazy 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