Ysengrim Posted November 29, 2007 Share Posted November 29, 2007 I'm afraid its a newbie question but I searched for a while and didn't find a solution yet - so I adress the problem to you guys To place a text on screen I use the GUICtrlCreateLabel("XXXXXXXXX",70,50,500) and to set the attributes I add GUICtrlSetFont (-1,9,550) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) but I have to set the attributes for every line again is there a command to set them for a group of lines at once? Now I used a Func command but I'm sure there is a better way to do ysengrim Link to comment Share on other sites More sharing options...
Vaeb Posted November 29, 2007 Share Posted November 29, 2007 I'm not sure if you mean that: GUICtrlCreateLabel("XXXX" & @CRLF & "XXXXX",70,50,500) greets Vaeb I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
Ysengrim Posted November 29, 2007 Author Share Posted November 29, 2007 I'm not sure if you mean that:GUICtrlCreateLabel("XXXX" & @CRLF & "XXXXX",70,50,500)greetsVaebthe problem is I want the text not only in multiple lines but on different places so I want to use the GUICtrlCreateLabel more then oncebut thanks for the help !!! Link to comment Share on other sites More sharing options...
martin Posted November 29, 2007 Share Posted November 29, 2007 is there a command to set them for a group of lines at once? ysengrim If you use an array for the label IDs then it would be a lot easier. Dim $Labs[100]; or however many labels you want $labs[0] = guictrlcreatelabel("................ $labs[1] = guictrlcreatelabel("................ . . $labs[$lastLab] = guictrlcreatelabel("................ For $n = 0 to $lastlab GUICtrlSetFont ($labs[$n],9,550) GUICtrlSetBkColor($labs[$n], $GUI_BKCOLOR_TRANSPARENT) next Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
new2this Posted November 29, 2007 Share Posted November 29, 2007 You can make the font global for a specific gui by using the GuiSetFont on the line immediately following the GuiCreate. I'm not sure if this will get it for you or if you want different font throughout the GUI. Link to comment Share on other sites More sharing options...
Ysengrim Posted December 3, 2007 Author Share Posted December 3, 2007 thanks guys for the help 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