06-02-2011 06:42 PM
Is it possible to programmatically change the Application/System/Dialog fonts? (The UI method is: Tools > Options > Environment > Fonts.)
I am interested in doing this in the context of internationalizing an application: for English, Spanish, French, German I can use, for example, Verdana. But once I get to Chinese I run into the problem of having to set the font dynamically. Writing code to set the font of every UI element individually is unmaintainable, so I'm wondering if there's a way to set the Application, System, and Dialog fonts.
Thanks,
Mark Zvilius
Solved! Go to Solution.
06-02-2011 09:01 PM
I couldn't find any application property nodes after doing a quick 2 minute search. Thinking about this a little more. Any changes made in the Tools>>Options dialog will only take effect the next time LabVIEW is launched. This is because those options are contained in the LabVIEW.ini configuration file and this is only read once (when LabVIEW is opened). I think you could probably read the LabVIEW.ini file, make the changes necessary to change the Font to what you want, and then programmatically restart LabVIEW but I want to preface this with messing with the LabVIEW.ini file can lead to bad juju. I will keep looking around but I don't see an easy way through this with a property node at the moment. We'll see what other options the community comes up with as well. Hope this helps!
06-03-2011 02:04 AM
06-03-2011 12:28 PM
Ian, specifying the font settings in the .ini file of the built application may be a good solution in this case. Thanks for the pointer.
Mark Z.