09-28-2015 01:01 PM
Hey,
Anyone know how to do this? I'm not having any luck digging through Propery Nodes. Surely there's a way to programmatically change the font of the Index on an Array Control/Indicator.
09-28-2015 01:03 PM - edited 09-28-2015 01:03 PM
Each element of an array must have matching formatting. You can change the font of all elements or none.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-28-2015 01:05 PM
I'm referring to this.
09-28-2015 01:11 PM - edited 09-28-2015 01:20 PM
Ah, I see. You can change that font manually, but you're right, it doesn't seem to have been included in the property node options...
Any NI people out there with some insight?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-28-2015 01:28 PM
A possible workaround: make the index invisible and use a numeric (I32) to index the array. You can change the font of a numeric control.
09-28-2015 01:37 PM
@PaulG. wrote:
A possible workaround: make the index invisible and use a numeric (I32) to index the array. You can change the font of a numeric control.
Additionally, if this is a common need for your applications, this would be a pretty simple XControl to make.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-28-2015 01:42 PM
So the question is "why?" Does it really need to be at run time?
(You can probably define the font in the ini file if you use a symbolic font and you want it to look consistent on different OS versions)
09-28-2015 03:41 PM
The is because of differing OS. But the .ini file is not useful in my case scenario because our application's FP is viewed using Remote Panel which apparently comopetely ingnores your .ini / .conf file. So, I'm just going to programmatically change the entire FP and it'll be dependent on OS. This appears to work. If the FONTs are manually or programmatically selected, then they'll display properly on a Remote Panel. Otherwise... I guess it's pulling settings from an Applet or something.
09-28-2015 03:43 PM
@PaulG. wrote:
A possible workaround: make the index invisible and use a numeric (I32) to index the array. You can change the font of a numeric control.
The issue here is that there's an array within a Type Def Cluster. So... not exactly a workaround I'd like to use, but a good one none the less.
09-28-2015 03:44 PM
@James.M wrote:
@PaulG. wrote:
A possible workaround: make the index invisible and use a numeric (I32) to index the array. You can change the font of a numeric control.
Additionally, if this is a common need for your applications, this would be a pretty simple XControl to make.
Also, I can't say that I'm too familiar with what an X Control is.