d0n Posted January 29, 2008 Share Posted January 29, 2008 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 ? Link to comment Share on other sites More sharing options...
mrbond007 Posted January 29, 2008 Share Posted January 29, 2008 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) Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
Zedna Posted January 29, 2008 Share Posted January 29, 2008 (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 January 29, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
d0n Posted January 29, 2008 Author Share Posted January 29, 2008 i tried that but it doesn't seem to work with line breaks Link to comment Share on other sites More sharing options...
Zedna Posted January 29, 2008 Share Posted January 29, 2008 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 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
d0n Posted January 30, 2008 Author Share Posted January 30, 2008 oh i get it , gotta set the width and height Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now