02-26-2015 01:53 AM
Hello All,
I have a array control in my front panel, I'm wondering is there any way to change that "array index" font size using VI scripting?
Example:
1. I have this array
2. Manually I have changed the font size of the array in "Selection Font" panel as below
3. Through VI scripting I'm able to control control font size, label font size.,.. But not the index font size. So it looks odd.
4. I'm expecting to be modify this array as same as picture 1 through VI scripting.
Note: It may not have any practical application, but some time it will be helpful for the programmers to make a quick drop. If anybody have any idea, please share.
<Electro Sam>
02-26-2015 05:34 PM
It looks like the index is chaging font size. It's the ELEMENT that is not changing
.
02-26-2015 05:46 PM
You need to cast the reference to the array element to a digital numeric class. Wire that reference to a property node and you'll be able to see the Numeric Text.Font:Size property. That's what you want.
02-26-2015 07:20 PM
I think he is saying he wants to be able to change the font of the index. That he has been able to change the label and the element.
(Kind of confusing, but the way I read the steps, he manually went and made everything bigger, then tried to programmatically set everything back to a normal font, but only found it for the label and the element.)
I don't think you can do this. I don't think the font for the index is exposed through scripting.
02-26-2015 11:32 PM
Appreciate your support guys, please share your thoughts.
<ElectroSam>
02-27-2015 12:01 AM
02-27-2015 04:39 PM
There's no good way to do it with scripting.
It is possible to get a reference to the object with key focus, and from there you can get to the text attributes. But putting text focus on the index isn't easy. You could pop up a dialog and ask the user to click on it, or you could try simulating moust events,
02-27-2015 05:09 PM
Yep. I misread the original post. It looks like there is no way to change the index font size.