10-16-2020 10:39 AM
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.
10-19-2020 04:46 AM
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
10-20-2020 02:03 AM
Merci Clement,
Je vais essayer ça.
Luis.
10-20-2020 03:45 AM
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.