.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ribbon button size too big

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
khunstad
835 Views, 3 Replies

Ribbon button size too big

Hi!

 

I have programmed a ribbbon with .NET. I want the buttons to show only a large bitmap with no text under. I specify:

 

RibbonButton button = new RibbonButton();
button.Orientation = Orientation.Vertical;
button.Size = RibbonItemSize.Large;
button.ShowText = false;
button.ShowImage = true;
button.Id = buttonId;

 

and set the image. The problem is that when I hover the mouse over the button, it is clear that the system is holding up vertical space for a text below. When I want 2 rows of such icons, there is a lot of free space and the ribbon gets much higher than necessary.

 

What setting rules this, when it is not enough to set ShowImage to false?

3 REPLIES 3
Message 2 of 4
philippe.leefsma
in reply to: khunstad

Simply try Orientation.Horizontal.

 

It seems that it doesn't hold space this way...

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
khunstad
in reply to: philippe.leefsma

Thought I had tried that at some point, but I changed it in the wrong place and it got overridden. So now I checked more thoroughly and everything looks great!

 

Thank you!

Message 4 of 4
philippe.leefsma
in reply to: khunstad

Cheers 😉



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost