|
Group: Forum Members
Posts: 2,
Visits: 1
|
Thank you for your answer. I had already seen those examples. I understand how to add a new toolbar with my buttons. However i don't understand how to add buttons to the current existing toolbars.
When i use the following code:
NDiagramCommander commander = nDiagramCommandBarsManager1.Commander; commander.Commands.Add(new MyButton());
Nothing happens.
When i use the following code:
NDiagramCommander commander = nDiagramCommandBarsManager1.Commander; commander.Commands.Insert(1, new MyButton());
If "MyButton" extends the same class as the button on the refered position i will replace that button for mine. However after that replacement all the other buttons on the toolbars just stop working properly. When i click them nothing happens. if "MyButton" didn't extend the same class noting happens.
So, i can't find a way to actually add a new button to an existing toolbar without replacing other button.
Sorry for my english...
|