LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically change Font of Array Index

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.

0 Kudos
Message 1 of 25
(5,026 Views)

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>   ---'


0 Kudos
Message 2 of 25
(5,021 Views)

I'm referring to this.

Capture.JPG

0 Kudos
Message 3 of 25
(5,014 Views)

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>   ---'


0 Kudos
Message 4 of 25
(5,003 Views)

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.

PaulG.
Retired
Message 5 of 25
(4,989 Views)

@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>   ---'


0 Kudos
Message 6 of 25
(4,978 Views)

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)

0 Kudos
Message 7 of 25
(4,975 Views)

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.

0 Kudos
Message 8 of 25
(4,946 Views)

@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.

0 Kudos
Message 9 of 25
(4,938 Views)

@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.

0 Kudos
Message 10 of 25
(4,935 Views)