06-19-2015 08:56 AM
Hello.
If I choose to write NA and WB in different fonts, when I make it an array, I cannot get my customized fonts anymore!
.
Does anyone know how I can do it?
Thank you in advance.
Solved! Go to Solution.
06-19-2015 09:23 AM
So far i know you can only have one font by array element. You can change it by property nodes.
BR,
Vincent
06-19-2015 10:06 AM - edited 06-19-2015 10:08 AM
would it be an option to use labview images?
06-19-2015 10:20 AM
An array must have all the properties of the elements be the same. The only thing that can change between elements of an array is the value. If you want to show multiple strings with different font styles you'll either need multiple string controls, or a cluster with multiple string controls in it. Some code can be written to make the representation of an array of elements into a cluster of elements to make this a bit easier.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-19-2015 11:02 AM
Also, font is a property of the control and the array element. When you wire a constant to the array indicator, you are only passing along the value, you are not passing along properties.
06-19-2015 11:04 AM
Not only will that not work for arrays, it also won't work for a string scalar.
The value that passes through a wire of type 'string', contains only the text characters; no font information flows through the wire.
The font information exists as properties of constants/controls/indicatiors.
In the case of controls and indicators, you can easily access the font information through property nodes.
You might find the attached VIs helpful.
06-29-2015 02:08 AM - edited 06-29-2015 02:08 AM
Thank you alexderjuengere for your answer, it is totally what I needed.
I would like also to know: does anyone know what is the default font used by LabView?
Thank you all for replying.