Insert a PushButton into an existing ribbonpanel.

Insert a PushButton into an existing ribbonpanel.

minet.axel
Enthusiast Enthusiast
322 Views
1 Reply
Message 1 of 2

Insert a PushButton into an existing ribbonpanel.

minet.axel
Enthusiast
Enthusiast

Hello,
I want to insert a button in an existing panel but I have a problem.

 

I have 2 addins that share the same panel.

I get the ribbontab and the ribbonPanel.

 

1st addin (loaded first)

RibbonTab: MicroMéthodes

       ribbonPanel: MicroCyclePlus

             pushbutton: Cahier de cycle

                   SlideOut

                          pushbutton: A propos Cahier de cycle

 

2nd addin (loaded second)

RibbonTab: MicroMéthodes

       ribbonPanel: MicroCyclePlus

             pushbutton: Histogramme

                   SlideOut

                         pushbutton: A propos Histogramme

 

The result is not the one I want.

 

Here is the result:
 
He tells me he can not create the SlideOut because the panel already contains one by cons, he creates me "Histogramme" in the lower part of the panel.
 

RibbonTab: MicroMéthodes

       ribbonPanel: MicroCyclePlus

             pushbutton: Cahier de cycle

                   SlideOut

                         pushbutton: A propos Cahier de cycle

                         pushbutton: Histogramme

1.PNG

 

Desired result:

2.PNG

 

0 Likes
323 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

@minet.axel 

Like you, i do believe this is possible.

 

Could you please post the code being used to add these to the ribbon? 

 

Another pair of eyes on the code may help. I don't see why a panel wouldn't let you have two slide outs.

 

Thanks,

 

Matt

0 Likes