LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum drop down select event

I would like an event to be fired each time the user selects a selection from the drop down list of an enum. I know I can use the Value Change event, but I want the event to fire also when the user selects the same selection as the last time (which Value Change event does not fire on). I've tried the Mouse Up event but it seems to not fire when the Mouse Up is on the drop down list. Any ideas?
 
Michael
0 Kudos
Message 1 of 10
(5,976 Views)
Hi Michael,
you can use the mouse down menu. If this is not enough, can you please explain what you try to do?
Mike


Message Edited by MikeS81 on 07-03-2008 09:37 PM
0 Kudos
Message 2 of 10
(5,973 Views)
I don't understand what you mean by the mouse down menu, I don't see that anywhere in the list of events in the Event structure for an Enum. I've attached a VI explaining a little more. I can't use a Mouse Down event because that fires before the user is able to selet an item from the drop down list.
 
Michael
0 Kudos
Message 3 of 10
(5,962 Views)
Hi Michael,
i meant the mouse down event. If you want that an event occurs if the user selects a new value or an old value, i don´t understand why you can´t use the mouse down event. Can you explain it please?

Mike
0 Kudos
Message 4 of 10
(5,957 Views)
Have you run the VI I attached in the last message? If you use the Enum that says Mouse Down, you will see that when the user clicks on the enum, the mouse down event fires right away without allowing the user to select from the drop down list. If I'm missing something please let me know, or better yet show me with code.
 
Michael
0 Kudos
Message 5 of 10
(5,953 Views)
Hi Michael,
yes i saw your vi and a run it. Can you please explain what you try to do, i´m not really understand why you need the event if the value not change.

Thanks
Mike
0 Kudos
Message 6 of 10
(5,950 Views)

Maybe this is a lost cause... What I wanted to do was have an Enum (or combo box, whatever) with a list of different Import options a user could do. They would press the Enum, and select the type of import from the drop-down list. As stated previously, a Value Change event would work fine for this, except that it doesn't fire when the same item is selected a second time without a change in between. This is a problem since the user could easily want to perform the same kind of import many times in a row.

I may have to just add a button next to the Enum, and have the user select from the Enum, then press the button to fire the event. Oh well.

0 Kudos
Message 7 of 10
(5,946 Views)
This may not be exactly what you had in mind but it does work ok, for a workaround.  I basically reset the value of the enum after the selection.  I added a status indicator to display the last action taken.  I hope this helps.
Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



0 Kudos
Message 8 of 10
(5,922 Views)


miguelc wrote:
Have you run the VI I attached in the last message? If you use the Enum that says Mouse Down, you will see that when the user clicks on the enum, the mouse down event fires right away without allowing the user to select from the drop down list. If I'm missing something please let me know, or better yet show me with code.
 
Michael


Hi Michael,
 
Did you try the Mouse Leave event? Just a thought...
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 10
(5,905 Views)
Not only Mouse Leave, also Mouse Enter & Mouse Move do not work for your cause. Smiley Sad
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 10 of 10
(5,900 Views)