Jump to content

Recommended Posts

Posted

  Quote

GUICtrlCreateLabel ("Text",0,0,135,20)

GUICtrlSetFont (-1,9, 800); bold

The problem with that is, that if the label is litle bit long, it wrap the text down... so better to set main font before and then switch it back to default after the label creation...

#include <GuiConstants.au3>

$Gui = GuiCreate("Test")

GUISetFont (9, 800)
GUICtrlCreateLabel ("Text Text Text Text Text Text Text Text ", 50, 100)
GUISetFont (9, 400)

;Uncomment this and you will see what i mean
#cs
GUICtrlCreateLabel("Text Text Text Text Text Text Text Text ", 10, 40)
GUICtrlSetFont(-1, 9, 800)
#CE

GUISetState()

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case -3
            Exit
    EndSwitch
WEnd

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 4 years later...

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
  • Recently Browsing   0 members

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