Problem with Ribbon Split Button creation

Problem with Ribbon Split Button creation

Anonymous
Not applicable
749 Views
0 Replies
Message 1 of 1

Problem with Ribbon Split Button creation

Anonymous
Not applicable

 

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 Likes
750 Views
0 Replies
Replies (0)