02-22-2017 05:26 AM
Dear All,
I'd like to use a simple numeric control (or indicator) with a height that can be adjusted. The only available option is in the Classic palette -> Classic Numeric -> Simple Numeric. This creates a nice, simple, numeric control with adjustable height. However, if you make the control taller (for example, right click on the control and chose properties, height = 24, so the height of the control is two times the default front panel grid size) the number displayed in the control does not stay centered vertically.
Here is the control with default size (default height = 19):
Here is the same control with the height set to 24:
I would like to make the height 24px while keeping the number centered vertically. Has anyone had a similar question and found a solution? I would be happy for any advice.
Best,
Ed
Solved! Go to Solution.
02-22-2017 05:54 AM
Hi edward,
change fontsize to ~20 to have the number vertically centered… 😄
Other workarounds
- use a picture indicator and "draw" your text at the exact position you want to have…
- use a transparent indicator showing your number and place it over a graphics/image of the border and background…
02-22-2017 01:36 PM
Attached.
03-02-2017 10:27 AM
Hi George,
Thanks for sending the control. When I open the attached control in LabView 2014 I see the height as 26. I also can't change the height of the control.
Best,
Ed
03-02-2017 10:35 AM
That must be the font you use. If you use app./system font, what OS are you using?
For system numeric control, you can NOT change the height in edit mode.
It automatically adjust to the font size (if > 24).
03-02-2017 10:56 AM
I changed the font to Segoe UI 13pt
03-02-2017 11:42 AM
Customize the control this way.
Add an Icon, save and apply changes. Bingo!
Silly workaround but if you need it you need it
03-02-2017 11:57 AM
> Make the part Numeric Text Transparent
> Move it down until text is centered Adjust height
> Select the Frame and set its background White
When you change the background color, there will be no difference between control and indicator.
03-02-2017 12:19 PM
@zou wrote:
> Make the part Numeric Text Transparent
> Move it down until text is centered Adjust height
> Select the Frame and set its background White
When you change the background color, there will be no difference between control and indicator.
TRUE but, in a where used case, you can "disconnect from typedef" and recolor the frame at edit time. I mentioned it was a flawed work-around. No other options would be possible even with an X-Control since frame BG Color has no p-node support. (sad)
03-02-2017 12:48 PM
Why not simply skip those change color steps?
Works fine without those steps for system control.