Jump to content

placing a {TAB} space in a label


Recommended Posts

  • Moderators

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.

Link to comment
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..

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...