cancel
Showing results for 
Search instead for 
Did you mean: 

Events in Menus

Former Member
0 Kudos

Hi All,

I have a question regarding Menus that is how to raise an event in Menus which i have created using XML,So can i raise an event through the code for those Menus which i have created using XML.

I am able to raise an event for the Menus which i have created through the code without using XML.So,kindly provide me some examples regarding Menus using XML.

Thanks

Sowmya

Message was edited by: sowmya c

Accepted Solutions (1)

Accepted Solutions (1)

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

You cannot raise an event with XML, have a look at the

e-learning material available here

Former Member
0 Kudos

Please provide me some examples on Menus using XML.

Former Member
0 Kudos

Hi Sowmya,

<Application>

<Menus>

<action type="add">

<Menu Checked="0" Enabled="0" FatherUID="43520" String="MyMenu1" Type="2" UniqueID="MyMenu1" Image="C:/MyPic.bmp">

<Menus>

<action type="add">

<Menu Checked="1" Enabled="0" FatherUID="MyMenu1" String="MySub1" Type="1" UniqueID="MySub1" />

</action>

</Menus>

</Menu>

<Menu Checked="0" Enabled="1" FatherUID="43520" String="MyMenu2" Type="2" UniqueID="MyMenu2" >

<Menus>

<action type="add">

<Menu Checked="0" Enabled="0" Position="0" FatherUID="MyMenu2" String="MySub21" Type="1" UniqueID="MySub21" />

</action>

</Menus>

</Menu>

</action>

</Menus>

</Application>

Create a file like this and load it using Application Object.

e.g. objApplication.LoadBatchActions(<xmldata>) function.

HTH

Former Member
0 Kudos

can i raise the events by writing the code in c# for the Menus which are created using XML.

AlexGrebennikov
Active Contributor
0 Kudos

<i>UI Help:</i>

ActivateMenuItem Method - Simulates click on menu item by its unique id

HTH

Answers (0)