Hi
I've to add some additonal items in MdiTab contextMenu , so i overide the OnInitializeContextMenu to do this.
but the items i've added appears in the end of the list , even if i set up their Index property , it seems that it does not work at all.
Is there any other property that i have to set up to get my IGMenuItem in the right Index.
Thanks
Hello.
Based on the behavior you are describing, it sounds as if you are setting the Index property prior to adding it to the MenuItems collection. The IGMenuItem class is derived from the .NET MenuItem class, and must be associated with a menu for the Index setter to perform any functionality.
The simple solution is to either set the Index after you've added it to the collection, or use the Add() overload on the MenuItems collection that accepts the index.
If you require further assistance, feel free to ask.
Chris
I get it from the time i have posted this topic , i used the overload of the Add() method .
Thank you for the answer