LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scale numeric control with pane (even the font)

Hi all,

I have a VI with a numeric control only in the fron panel. I'd like the control to be scaled with the window (even the font). In other words, when windows is resized, the numeric text should fit the window.

I've enabled the option "Scale object with pane" but when the windows is resized. only the numeric box is resized; text font doesn't change.

 

2016-06-20_120243.png

 

Is there a way to fit font to the control box?

 

Thanks in advance

0 Kudos
Message 1 of 5
(3,163 Views)

Not sure if there is any easy method.

 

One Possible Solution is:You can get the Button size and based on that calclalate the Text Box Size (Use Property Nodes)

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(3,157 Views)

Hi   AC_85,

 

 Find the attached VI(Scale numeric control with pane (even the font)). That approach will hel for you.. but  you need to  change  Numaric data type  to text data type

NI CLDlabview-programming-fundamentalslabview-environment
0 Kudos
Message 3 of 5
(3,147 Views)

Hi   AC_85,

 

 

This  is will  helps you.. please check it...

Replay me this  solution is meet you requirment or not.

 

 

 Thanks

Veeru...

NI CLDlabview-programming-fundamentalslabview-environment
0 Kudos
Message 4 of 5
(3,141 Views)

@veerababu wrote:

Hi   AC_85,

 

 

This  is will  helps you.. please check it...

Replay me this  solution is meet you requirment or not.

 

 

 Thanks

Veeru...


Thanks veerababu. I've used your example as base for my solution and it works fine (see attachment).

 

Thanks

0 Kudos
Message 5 of 5
(3,108 Views)