Jump to content

lables and updating it


d0n
 Share

Recommended Posts

make sure that the size of the label is big enough : GUICtrlCreateLabel("some data", 10, 10, 200, 200)

you can also use this example

Local $names = "my name" & @CRLF & "your name" & @CRLF & "some name"
GUICtrlSetData($label, $names)
Link to comment
Share on other sites

i tried that but it doesn't seem to work with line breaks

This works fine:

#include <GUIConstants.au3>

GUICreate("My GUI",300,200)
$your_label = GUICtrlCreateLabel("", 100, 50, 100, 50)
GUICtrlSetData($your_label, "Line1" & @CRLF & "Line2")
GUISetState (@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
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...