One Handler for multiple MenutItem [message #568609] |
Thu, 11 February 2010 12:29 |
Walter Mising name Messages: 128 Registered: July 2009 |
Senior Member |
|
|
How do I get the control of a menu item that was clicked ?
<children xsi:type="application:DirectToolItem" id="Btn1"
URI="platform:/plugin/test/handler.ClickHandler" label="Test_1"
iconURI="platform:/plugin/test/icons/Test_1.png"/>
<children xsi:type="application:DirectToolItem" id="Btn2"
URI="platform:/plugin/test/handler.ClickHandler" label="Test_2"
iconURI="platform:/plugin/test/icons/Test_2.png"/>
The objective is to have 1 ClickHandler and then take action based on the
button clicked.
I would prefer to use "id" to differentiate the button clicked.
Any pointers would help.
Thanks,
Best Regards,
Walter G. Prabhakar.
|
|
|
Powered by
FUDForum. Page generated in 0.02780 seconds