Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202521

Boolean Highlight and Numeric Control Question

$
0
0

Hi all,

 

I have what is hopefully two simple (maybe stupid) questions regarding Boolean controls and numeric controls. Please see attached VI.

 

I’ll start with the Boolean question. If you run the VI, you will notice that the top Boolean control changes to have a blue border to highlight the button as though it’s being automatically focused. You will also notice that if you hover over the Boolean control, it changes to a light shade of blue. I want to know how these two things are done.

 

As far as can tell (I’ve tried every option in there) It’s not the focusing options contained within the properties doing this. If you press the home key on your keyboard it should show what the act of focusing does to the second Boolean. I have tried making the control a type def to see what picture items were contained but these do not appear to be the answer which is what I expected. Could this Boolean be an Xcontrol as I can’t think how else it could have the hidden functionality? I must point out that this Boolean was extracted from the three button dialog function which of course is a fundamental LabVIEW function.

 

The second question is regarding the numeric control. I want it so that if a value lower than 0 is input, it is coerced to zero. This is fine and works perfect from the data entry settings I have set. Now, let’s assume I input a value of 5. I would like to (if possible) make it such that if I select/highlight the entire value with my mouse (so hold down left button and select all) that when I hit the Delete key or backspace key that the value is wiped out and reset/coerced to zero. Is this possible without some clever jiggery pokery with property nodes/event structure etc?

 

Cheers in advance

 

Mitch


Viewing all articles
Browse latest Browse all 202521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>