Menu & Context Menu

G

Guest

I am using several menu items from my main menu in my context menu. For some reason, all the menu items that I use in the context menu no longer show up in my main menu! I thought that maybe the context processing was setting the Visible property to false, but I verified that it is still set to true

When I comment out my context code and rebuild, the menu items once again appear in my main menu

I create the context menu as follows

MenuItem[] ami

miFileOpen
miFileSaveA
}
ContextMenu = new ContextMenu(ami)

What is going on

Thanks
VF
 
W

wandering1

VF said:
I am using several menu items from my main menu in my context menu. For some reason, all the menu items that I use in the context menu no longer show up in my main menu! I thought that maybe the context processing was setting the Visible property to false, but I verified that it is still set to true.

When I comment out my context code and rebuild, the menu items once again appear in my main menu.

I create the context menu as follows:

MenuItem[] ami =
{
miFileOpen,
miFileSaveAs
};
ContextMenu = new ContextMenu(ami);

What is going on?

Thanks,
VF

A very easy way would be:

MenuItem[] ami =
{
miFileOpen.Clone(),
miFileSaveAs.Clone()
};
ContextMenu = new ContextMenu(ami);

Not the best solution but it will give you what you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top