LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Value change event from ring with one item

Careful with Mouse Down, I believe that fires when you click on the label as well as the control, that is why I lean towards Menu Activation, or adding a blank element at the beginning.

Message 11 of 14
(1,125 Views)

 


@tbob wrote:

I'm sure confused.  How can you select an item if there are no items to select?  How can you change the selection if there is just one selection?


 

Maybe you don't have LabVIEW 2010, but the only enum item he starts out with is "add new entry" and selecting it adds an item to the enum.

 

Here are a few ideas (all in LabVIEW 2010):

 

 

  1. Add a blank entry as second item, make it the default, and remove it once one new item has been added (enum example).
  2. Add an "add button" to add an item to the enum. (button example)
  3. Use a listbox instead. Double-clicking the first entry adds an item. (listbox example).

 

Download All
Message 12 of 14
(1,117 Views)

@altenbach wrote:

 


 

Maybe you don't have LabVIEW 2010, ...

 


You're right.  I don't have it now so I can't see any of the code.  I used to have it, but that was before I changed jobs.  I have 2009 now.  But I will be getting 2010 within the next few weeks.

- tbob

Inventor of the WORM Global
0 Kudos
Message 13 of 14
(1,092 Views)

I think the "one item" is a red herring. Suppose you have an enum, enumerating choices for food. You may click, select beef, then release. Event generated. Now the next person wants to select beef too. No event generated. And going to a different choice just to get back to the desired entry (with an event) is wrong, as you don't really want the other item. I suppose you could add an "order now" button, and then just read the enum...

0 Kudos
Message 14 of 14
(1,018 Views)