Here is the line that triggers the event on a context menu item click. The items are generated dynamically when the user clicks the button. How do I get the name of the item that is clicked?
fn cmCamViewsItemClick arg= ( " I want to get the name of the item clicked over here" ) for i = 0 to cmCamViews.MenuItems.count-1 do ( dotNet.addEventHandler cmCamViews.MenuItems.item[i] "click" cmCamViewsItemClick )
Here cmCamViews is the contextmenu.
I am just totally confused checking the MSDN library and cgtalk posts.
Still on the same project which is on the viewport configuration, trying out multiple ways, got stuck two times prior to this trial and I fell this approach would be much better than I initially thought about it.