News and Hints - harborsiem/WinForms-Ribbon GitHub Wiki

News and Hints

Useful Links

Microsoft Windows Ribbon Framework

Table of Content for Documentation

Windows Ribbon Framework for Delphi From this page you can get a very good tutorial for the Ribbon.

Setting Ribbon Properties

Hints for ApplicationModes

When using ApplicationModes to a Tab or Group then you should define ApplicationMode to all Tabs and Groups in the RibbonMarkup.xml. If you don't do this you can get an Application shutdown when switching the ApplicationMode.

Hints for code behind

In the Ribbon controls classes RibbonButton, RibbonComboBox etc. you have different properties dependent to the control. Some of these properties you can define in the markup at a Command. Following table will show the property names in markup and in the control classes.

Markup Control class
LabelTitle Label
LabelDescription LabelDescription
TooltipTitle ToolTipTitle
TooltipDescription ToolTipDescription
Keytip Keytip
Command.SmallImages SmallImage
Command.LargeImages LargeImage
Command.SmallHighContrastImages SmallHighContrastImage
Command.LargeHighContrastImages LargeHighContrastImage

Hints for a missing "Extra Label" Label in the Ribbon

You can try to use a Button with the "Extra Label" in the Markup Property Label. In Code behind you have to set this Button Property Enabled = false. See Samples\CS\18-SizeDefinition, Tab "Special Layouts", Group3, Button cmdButtonLabel. Also have a look to the Size Definition in Group3.

Hints for special visual design with "Hidden Buttons" in the Ribbon

See Samples\CS\18-SizeDefinition, Tab "Special Layouts", Group1, Group2, Group4. Also have a look to the Markup element Size Definition in the Groups.

Size Definitions with Hidden Buttons

Hints for MDI applications with the Windows Ribbon

MDI is not supported by the Windows Ribbon framework directly. See an older post: MDI support, commented by a Microsoft employee.

But the only thing I know is, that one can't use the Maximize Button or a WindowState.Maximized property in the MDI Forms. If one want a maximized MDI Form inside the Mainform, you have to do extra effort for sizing the MDI Form.

Alternatively, one can use a TabControl with some effort for closing, hiding, .... If there are other ideas you're welcome to write an issue or discussion


⚠️ **GitHub.com Fallback** ⚠️