LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get element of a sub menu .NET Strip Menu

Hello everyone, i hope your are having a nice day,

 

I am trying to do a menu bar with some .NET elements and property nodes. Basically i took the idea from another post that i saw here in the forums.

 

My problem is that i can't get any information of the clicked element of my menu,like their name or clicked status.I only can display a message ahen i click on a sub menu element.

 

If some one knows how to get the name string of the element that i'm clicking it wil be great.

 

You can download my project down below.

 

Thanks.

 

Luis.

 

0 Kudos
Message 1 of 4
(1,284 Views)

Hi KoalaBeer,

 

I looked your project and a simple solution would be to modify your DropDownItemClicked Event Callback to write in a global variable or a FGV the Text of the Item.

Then you call the variable in your main VI to read the value and see if it has changed.

 

Regards,

Clement

Message 2 of 4
(1,215 Views)

Merci Clement,

 

Je vais essayer ça.

 

Luis.

0 Kudos
Message 3 of 4
(1,193 Views)

Another (better😁) way would be to create a user event and pass it to the callback on initialization. Then generate a user event in the callback. You'd get an event in your main, provided you register for the user event.

Message 4 of 4
(1,187 Views)