LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to prevent an enum control from wraping around

I can't for the life of me find the VI where I demonstrated the ability to limit to a single click and prohibit click and hold.  I also can't remember how I did it but trying all the "usual" methods don't seem to work.

 

Hmm, maybe it'll dawn on me eventually.

0 Kudos
Message 21 of 24
(652 Views)

The only thing I can find (which is kind of fidgety) is that every mouse down on the increment and decrement button is actually ignored in a filter event and depending on which button is pressed, a piece of logic decides on whether the value should change and what the changed value should be.  It then sets that value per Value (Change) event which gets properly propagated to all listeners.

 

The awkward side effect is that the button for the increment / decrement does not show the "pressed" state......

 

Please forgive my re-use of the filename, it currently does NOT support disabled items.....

 

Shane

0 Kudos
Message 22 of 24
(642 Views)

@JÞB wrote:

Now go and fix the direction too! 

 

That's been bothering me for years.


Use control editor and swap the positions and swap the image on the buttons.

Done.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 23 of 24
(619 Views)
@Ben wrote:

@JÞB wrote:

Now go and fix the direction too! 

 

That's been bothering me for years.


Use control editor and swap the positions and swap the image on the buttons.

Done.

 

Ben

I would just like it to be consistent.  By default.

 


 


"Should be" isn't "Is" -Jay
Message 24 of 24
(575 Views)