SplitButton Behaviour in StackItem when 2 item are stacked

SplitButton Behaviour in StackItem when 2 item are stacked

lav_panwarMA2AY
Contributor Contributor
330 Views
3 Replies
Message 1 of 4

SplitButton Behaviour in StackItem when 2 item are stacked

lav_panwarMA2AY
Contributor
Contributor

Hello 

I am try to create a stackitems in my panel for that I have create one push button and one splitButton.

Then using RibbonPanel.AddStackedItems(Item1,Item2) I have add those in panel. Then using the AdWindows.dll I have get the Autodest.Window.RibbonItem using below code.

lav_panwarMA2AY_0-1747725934271.png

Then I changed those properties to hide the text.

lav_panwarMA2AY_1-1747725962618.png

But the output is corrected the button are stacked like this.

lav_panwarMA2AY_2-1747726057885.png

But It should be stacked like a revit 

lav_panwarMA2AY_3-1747726131314.png

I have used the different size of images and try to change the orientation as well 

lav_panwarMA2AY_4-1747726197095.png

this not showing correctly.

Any Suggestion how to fix that.

@ jeremy_tammik

0 Likes
331 Views
3 Replies
Replies (3)
Message 2 of 4

TripleM-Dev.net
Advisor
Advisor

Which Revit version?

 

On Revit 2022 and 2024 they (pushbutton and splitbutton stacked) display like Revit it does.

In my Ribbonbuilder I do change the dropdownbutton after creation into a splitbutton... I think setting the IsSplit property to true....

 

- Michel

0 Likes
Message 3 of 4

lav_panwarMA2AY
Contributor
Contributor

Hello Michel 

I am setting the IsSplit Property to True and It will increase the height of ribbon

lav_panwarMA2AY_0-1747887315218.png

 

Message 4 of 4

TripleM-Dev.net
Advisor
Advisor

Uhm, I'm creating a normal Dropdownbutton and later retrieve all Dropdownbuttons that have been defined in my RibbonTemplate as SplitButton.

And only set the IsSplit to true (and the synchronize setting for the splitbutton itself, the text and image I think)

 

Maybe that's the difference

I created the RibbonTemplate some 10jr ago and never had to look at it again, I just drag and drop the commands where needed and save the setting as a "RibbonTemplate" that gets loaded on runtime and generates the ribbon (with some special editing, like the splitbutton, etc)

0 Likes