06-08-2010 01:06 PM - edited 06-08-2010 01:06 PM
Have you ever wanted to get the text size for a given text, LabVIEW has an easy VI for this:
Wouldn't it be nice if we could connect this to the property node of a string control:
Unfortunatly the Fonts don't match, so we end up with the following code:
But recently I found out that NI has created a little VI in vi.lib that does this conversion:
The helper VI is located at the following location:
vi.lib\Utility\error.llb\Convert property node font to graphics font.vi
Please be aware that NI might change this VI for their own will, so you might want to make a working copy for your code.
For an overview of past nuggets look here.
Ton
06-08-2010 01:16 PM
Nice find Ton.
This prompts me to ask out loud "Why is there so little use of type definitions in LV core?"
There are a lot of other nodes that would alos benefit from type defs.
Ben