Jump to content
Sign in to follow this  
Sobiech

Creating Label problem

Recommended Posts

Sobiech

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

Share this post


Link to post
Share on other sites
GEOSoft

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!"

Share this post


Link to post
Share on other sites
Melba23

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. :idea:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
GEOSoft

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. :idea:

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!"

Share this post


Link to post
Share on other sites
Melba23

George,

Is that 45 minutes up so soon? :idea:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
GEOSoft

George,

Is that 45 minutes up so soon? :idea:

M23

A 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!"

Share this post


Link to post
Share on other sites
Sobiech

Thanks 4 all :idea:

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 by Sobiech

This world is crazy

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×