DiagramCommandBar Costumization


Author
Message
Samuel Matos
Samuel Matos
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1
I've been testing Nevron Diagram for several days.
I am trying to costumize the DiagramCommandbar, for instance, i would like to add option do Main Menu.
Is that possible?
I would like also to add buttons to the current toolboxes.
How can i do that?

Thanks in advance.
Reply
Samuel Matos
Samuel Matos
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
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...
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search