Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
How can I rearrange toolbar commands
How can I rearrange toolbar commands
Post Reply
How can I rearrange toolbar commands
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
usyber
usyber
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 10,
Visits: 106
I have a toolbar command where I like to change the position within the toolbar. The following code does not work:
NDiagramCommand cmd = nDiagramCommandBarsManager1.Commander.Commands.GetCommandFromId((int)DiagramCommand.ToggleSnapToGrid);
nDiagramCommandBarsManager1.Commander.Commands.Remove(cmd);
nDiagramCommandBarsManager1.Commander.Commands.Insert(0, cmd);
Tags
DiagramCommandBarsManager rearrange command
Reply
Like
0
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hello usyber,
You will need to create custom toolbars builder class like the one described in
this
post.
The only difference is that instead of using Add method to add the command use Insert to insert the command in desired position.
I hope this helps.
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search