Sign in to follow this  
Followers 0
d0n

lables and updating it

6 posts in this topic

so i created a lable and set the character limit to like 60 but when i try to GUIctrlsetdata a list of names, it wont show all of it. do i have to somehow allow it to show multi lines ?

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Take this as start point for ideas

it's derived fro button and probably will not work but idea is similar

$your_label = GUICtrlCreateLabel("", 0, 0, 75, 100, BitOR($BS_CENTER,$BS_MULTILINE))
GUICtrlSetData($your_label, "Line1" & @CR & "Line2")
Edited by Zedna

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

oh i get it , gotta set the width and height :D

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