LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

select enumerated control based on key focus

I have a vi where the user can enter the Type of Resin, filler, initiator, etc (see pic) and then can hit add or delete to add/delete it from the combo box.  All of these items are part of a custom control that is a cluster.  I created a subVI that will delete and add the items from the list, based on  enumerated controls (one to control which combo box needs to be modified and then what action to take, add/delete). 

I wanted to use only one add and one delete button, instead of a seperate add/delete for each combo box.  I am using an event structure and when the user hit the add or delete button, which ever combo box was in Key Focus would be the combo box that had the item added or deleted.  I thought that I could use the select function (under comparison palette) and if the Key Focus property node for Enter User was true, then an enum constant for the user would be fed into the subvi i mentioned earlier, and so on for each combo box.  The problem is that I cant connect them all to the one input on the subvi directly.  I want to only feed in the one that has the keyfocus and not any of the other ones.  I could go through and make a bunch of case structures, but I want to believe there is an easiear way to do it.
Kenny

Download All
0 Kudos
Message 1 of 3
(2,717 Views)
Sorry, forgot to add one of the pics.   May or may not help.
Kenny

0 Kudos
Message 2 of 3
(2,710 Views)
I jsut answered my own question, I wont be able to use Key Focus and the add/delete like i wanted.  Since as soon as I hit the add button, the key focus is off the combo box....
Kenny

0 Kudos
Message 3 of 3
(2,705 Views)