LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to make a numeric control blank after entering in a value

I would like to make a numeric control blank after entering in a value.  Is that possible?  

0 Kudos
Message 1 of 21
(390 Views)

Numeric controls by their nature always show a number.  They can't show "blank".

 

One alternate options is that you could use a String control instead, and just generate errors if someone puts something into it that can't be parsed as a number.

 

Without knowing your real objective here though it's hard to suggest other possible alternatives.  What are you really trying to do overall?

0 Kudos
Message 2 of 21
(380 Views)

@Kyle97330 wrote:

Numeric controls by their nature always show a number.  They can't show "blank".

 

One alternate options is that you could use a String control instead, and just generate errors if someone puts something into it that can't be parsed as a number.


Or you can use the String "Key Down?" event to filter out unwanted Char to mimic a numeric control.

 

George Zou
0 Kudos
Message 3 of 21
(341 Views)

You could make the font color the same as the background color except when hovering with the mouse over it.

 

altenbach_0-1731539882846.png

altenbach_1-1731539904912.png

 

 

Message 4 of 21
(326 Views)

@altenbach wrote:

You could make the font color the same as the background color except when hovering with the mouse over it.

 

 


Never say never... that is some out-of-the-box thinking. 😁

---------------------------------------------
Certified LabVIEW Developer (CLD)
0 Kudos
Message 5 of 21
(322 Views)

@altenbach wrote:

You could make the font color the same as the background color except when hovering with the mouse over it.

 

altenbach_0-1731539882846.png

altenbach_1-1731539904912.png

 

 


Do you catch the value change event also?   OP wants blank "after entering in a value".

We can't test your picture 😉

 

George Zou
0 Kudos
Message 6 of 21
(316 Views)

@zou wrote:


Do you catch the value change event also?   OP wants blank "after entering in a value".

We can't test your picture 😉


 

Well, that could easily be implemented with a bit more code once we have all requirements. We don't!

 

Currently the indicator is blank unless the mouse hovers over it. Should the user be able to enter a new value later or never again? In my case, we see what is being entered while the mouse is over it. Also how should the control look like before a value is entered?

 

It would be simple to expand the code ... I still don't see the purpose of all this! How does the operator benefit from a blank control?

 

 

0 Kudos
Message 7 of 21
(304 Views)

1. mouse enter is not a proper event.  Does touch screen trigger mouse enter event?  What if user use the Tab key instead of mouse?  I would use KeyFocus event if I could 🙂

 

2. mouse leave is not proper event either.  Think about this scenario: user start to enter number, but before he finish, he moves the cursor out of the way, and then blank.

 

George Zou
0 Kudos
Message 8 of 21
(295 Views)

@Kyle97330 wrote:

Numeric controls by their nature always show a number.  They can't show "blank".


Not completely true. There is a hidden/unofficial property "HideText" that does exactly that.

Message 9 of 21
(289 Views)

@Martin_Henz wrote:

@Kyle97330 wrote:

Numeric controls by their nature always show a number.  They can't show "blank".


Not completely true. There is a hidden/unofficial property "HideText" that does exactly that.


Wait, what?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 21
(253 Views)