LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change text size of text in listbox control ?

Hi ,
In my project I need to change the text size of text in listbox control . How can I do so , plz tell me ?
Also I like to know how can I changetext  Font ?
 
Regards
subrata
0 Kudos
Message 1 of 2
(3,220 Views)
There are a couple of control attributes that permit you to change the appearance of a text box control: ATTR_TEXT_FONT to change the font used in the control and ATTR_TEXT_POINT_SIZE to change the size of it; other attributes permit you to define if using bold or italic font and its color. Remember that all these attributes apply to the whole text box (i.e. you cannot have a single word with a font different from all the rest of the texbox text).
 
There is also an easy way to know all the attributes that you can set / get given a control type: if you open the function panel for SetCtrlAttribute or GetCtrlAttribute functions and click on Control Attribute field, a popup window will open that lists all control attributes available in the system. Selecting the correct type in the Control type listbox (first field from top) the list will be confined to all and only the attributes settable / readable for that control type. All attributes are listed in logical  groups so that finding a specific attribute is quite easy.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(3,213 Views)