LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change all of the fonts easily?

I have several panels in my application and I would like to set all of the fonts in my entire application to Ariel 12 instead of using NIDialogMetaFont etc. Is there a quick and easy way to this rather than set each field on each panel one at a time?
Thanks!
0 Kudos
Message 1 of 5
(3,806 Views)
Unfurtunately there seems not to be an option to operate on several control's attributes at a time.

I see two ways to obtain what you need:
1. In case you have not yet developed the UIR, change the default text and label attributes in the UIR editor preferences to the font and size you want
2. For existing panels, you can save in text format, make the necessary modifications dorectly in the TUI file and reload the oanels fromt the TUI file. With a few attempts and a smart use of search-and-replace functions of your editor you should be able to solve your problem easily.

Hope this helps
Roberto


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 5
(3,806 Views)
Roberto,
Thanks for your response. Can you tell me how I can save the existing panel in a TUI file. My save as drop down panel does not provide that extension as an option.
Donna
0 Kudos
Message 3 of 5
(3,806 Views)
Actually, while it's true that in general you cannot change the attributes of multiple controls at a time, you can change the font of multiple controls. If you set the default text and label fonts to what you want (in the Options>>Preferences dialog) you can then apply this font to multiple controls: simply select the controls you want, and then use Edit>>Apply Default Font.

Luis
NI
Message 4 of 5
(3,806 Views)
Select Options>>Save in Text Format

Luis
NI
0 Kudos
Message 5 of 5
(3,806 Views)