Valuater Posted March 12, 2006 Posted March 12, 2006 a new one for me placing a tabbed space in a label.... $info1 = "This info" $info2 = "Other info" GUICtrlCreateLabel( $info1 & "{TAB}" & $info2, ...bla..bla possible??? 8)
Moderators SmOke_N Posted March 12, 2006 Moderators Posted March 12, 2006 This works?#include <guiconstants.au3> $main = GUICreate('tab label test') $l = GUICtrlCreateLabel('testing' & @TAB & 'This', 10, 10, 150, 25) GUISetState() While 1 $msg = GUIGetMsg() If $msg = - 3 Then Exit Sleep(10) WEnd Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
cppman Posted March 12, 2006 Posted March 12, 2006 a new one for me placing a tabbed space in a label.... $info1 = "This info" $info2 = "Other info" GUICtrlCreateLabel( $info1 & "{TAB}" & $info2, ...bla..bla possible??? 8) cant u do? #include <GUIConstants.au3> $GUI = GUICreate("Testing...") $TabSpace = " " $label = GUICtrlCreateLabel('Text1' & $TabSpace & 'Text2', 10, 10, 150, 25) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit WEnd works just the same.. Miva OS Project
Valuater Posted March 12, 2006 Author Posted March 12, 2006 Perfect... i had'nt done this one before thanks... SmOke_N 8)
Moderators SmOke_N Posted March 12, 2006 Moderators Posted March 12, 2006 cant u do? #include <GUIConstants.au3> $GUI = GUICreate("Testing...") $TabSpace = " " $label = GUICtrlCreateLabel('Text1' & $TabSpace & 'Text2', 10, 10, 150, 25) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit WEnd works just the same..What if my tab is set to 3 or 4 or 5 or whatever? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
cppman Posted March 12, 2006 Posted March 12, 2006 than it sux for u... lol, jk. yeah, i see.... Miva OS Project
greenmachine Posted March 12, 2006 Posted March 12, 2006 The @TAB macro is good, but you could also have done Chr (9). Ascii code for "Horizontal Tab" according to lookuptables.com. Lots of 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