AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with Ribbon Split Button creation

0 REPLIES 0
Reply
Message 1 of 1
khushSingh
611 Views, 0 Replies

Problem with Ribbon Split Button creation

 

Hi

I am trying to create a Ribbon Split Button with the name Animals & the split buttons as Lion, Tiger & Cat.

But, when executing the dll the name for the Split button is reflecting as Lion, instead of Animals.

Here I am pasting the corresponding code as well as attaching the screen shot.

 

Dim addSpaceButton As RibbonSplitButton = NewRibbonSplitButton()

addSpaceButton.Text =

"Animal"

addSpaceButton.ShowText =

True

addSpaceButton.CommandHandler =

NewAdskCommandHandler()

addSpaceButton.IsSplit =

True 

Dim bulkCreateButton As RibbonButton = New RibbonButton()

bulkCreateButton.Text = "Lion"

bulkCreateButton.ShowText =

True

bulkCreateButton.CommandHandler =

New AdskCommandHandler() 

Dim autoTraceButton As RibbonButton = New RibbonButton()

autoTraceButton.Text = "Tiger"

autoTraceButton.ShowText =

True

autoTraceButton.CommandHandler =

New AdskCommandHandler() 

Dim freeHandButton As RibbonButton = New RibbonButton()

freeHandButton.Text = "Cat"

freeHandButton.ShowText =

True

freeHandButton.CommandHandler =

New AdskCommandHandler()

 

addSpaceButton.Items.Add(bulkCreateButton)

addSpaceButton.Items.Add(autoTraceButton)

addSpaceButton.Items.Add(freeHandButton)

 

=======To add the button to the panel=====

addSpaceSourcePanel.Items.Add(addSpaceButton)

 

tool.JPG

 

Please let me know where I am mistaken.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost