Greg Posted September 24, 2019 Report Share Posted September 24, 2019 (edited) When the user clicks in the numeric control box, the bounds of the white field exceed the border of the control The user sees the background of the numeric control breaking through the border. Edited September 24, 2019 by Greg error in uploaded image 1 Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted September 25, 2019 Report Share Posted September 25, 2019 Hi Greg. Thanks for posting this. We are aware of this, and the only work-around we have found is to adjust the position of the display text down one pixel, relative to the other parts of the numeric control. Unfortunately, that changes the position of the text relative to the background and it looks (very slightly) misaligned (it looks 1px too low). LabVIEW doesn’t provide much possibility for adjusting the behavior of the string text (like making the background transparent when it has the cursor for text input by user. If you discover anything or have ideas about how to fix/improve this, please let us know. does that explanation make sense? Quote Link to comment Share on other sites More sharing options...
0 Greg Posted September 26, 2019 Author Report Share Posted September 26, 2019 (edited) Hi Jim. Thanks for your response. I'm still a little confused. On my screen, the numeric control/indicator text is already too high (4 pixels of padding at the top and 8 at the bottom in the image below). I will try moving the Numeric Text part down by entering Customize Mode in the control editing window. Edited September 26, 2019 by Greg I think I know how to move the text location. Quote Link to comment Share on other sites More sharing options...
0 Greg Posted September 26, 2019 Author Report Share Posted September 26, 2019 Moving the Numeric Text part down by 2 pixels solved it for me. I have attached the edited control in case any other users find this useful. Numeric-Simple-(flat).ctl Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted September 26, 2019 Report Share Posted September 26, 2019 I think the issue *may* be the Application Font that's configured in LabVIEW/Windows on your computer -- I'd be curious to know more about that. Here's how the numeric controls look on my system. Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted September 26, 2019 Report Share Posted September 26, 2019 Here's how the control you uploaded looks on my system -- it's 2px below the midline. Quote Link to comment Share on other sites More sharing options...
0 Greg Posted September 26, 2019 Author Report Share Posted September 26, 2019 I am using Arial instead of the default font. I think using the default font could cause appearance differences depending on OS of the computer running the VI. I am in a multi-OS environment, and I want to ensure a consistent UX. Please correct me if I am wrong. Number Text field contains 28 pt font. It's odd that LabVIEW fonts have different top and bottom padding. What font are you using? Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted September 27, 2019 Report Share Posted September 27, 2019 Hi Greg. I think I’m using Tahoma Quote Link to comment Share on other sites More sharing options...
Question
Greg
When the user clicks in the numeric control box, the bounds of the white field exceed the border of the control
The user sees the background of the numeric control breaking through the border.
error in uploaded image
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.