Ysengrim Posted November 29, 2007 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
Vaeb Posted November 29, 2007 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
Ysengrim Posted November 29, 2007 Author Posted November 29, 2007 Vaeb said: 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 !!!
martin Posted November 29, 2007 Posted November 29, 2007 Ysengrim said: 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.
new2this Posted November 29, 2007 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.
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