Sign in to follow this  
Followers 0
Valuater

placing a {TAB} space in a label

7 posts in this topic

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites



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


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Perfect... i had'nt done this one before

thanks... SmOke_N

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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? :)

[center]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.[/center]

Share this post


Link to post
Share on other sites

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.

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  
Followers 0