Jump to content

How make font for more then one line?


Ysengrim
 Share

Recommended Posts

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

I'm not sure if you mean that:

GUICtrlCreateLabel("XXXX" & @CRLF & "XXXXX",70,50,500)

greets

Vaeb

the problem is I want the text not only in multiple lines but on different places so I want to use the GUICtrlCreateLabel more then once

but thanks for the help !!!

Link to comment
Share on other sites

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

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...