Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Change Size of a Ribbon Control Collapse All
Subject Author Date
Gunter Avenius Oct 29, 2007 - 8:08 AM

Hello,

how can i change the size of a Ribbon Control (Button)

ribbonButton.Informativeness.MinimumLevel = ??

Best regards
Gunter Avenius

Gunter Avenius Oct 29, 2007 - 10:19 AM

Hello,

thanks for the reply.

I will change the size (Button RibbonGroupButtonInformativeness.FixedLevel.LargeImageWithText")
To: RibbonGroupButtonInformativeness.FixedLevel.SmallImageWithText with Code.

And:

How can I add an "SmallImageWithText" - Button with Code

I have (this adds an Button on the Group):
..
ribbonButton.Text = "Button " & intControlsZaehler.ToString
ribbonButton.Name = "ctl" & intControlsZaehler.ToString
ribbongroup.Controls.Add(ribbonButton)

Thanks

Best Regards
Gunter

Technical Support Oct 29, 2007 - 9:54 AM

When a button is in the ribbon, its size is calculated by the framework depending on the form’s width so you cannot set an arbitrary size for it. However you can affect the button size by using the control informativeness feature so the button can be displayed as a small image, a small image with text and a large image with text. You can read more about this in this article.