Posted 29 September 2021, 11:20 pm EST
Hi, at the moment we’re updating our application from the old legacy C1Ribbon to the new one. The application is a MDI form. For the MDI children we’ve used the C1RibbonForm as a base class instead of a normal Windows Form, even if they don’t have a Ribbon itself, because the C1RibbonForm was themed when we’ve set the VisualStyle. This also works with the new Themes, but the caption bar of the new C1RibbonForm is higher than before (about 8px). This huge caption bar looks weird at the MDI children and also the icon of the children are streched and get blurred. I’ve managed to reduce the caption bar height of the MDI parent form with
ribbon.RibbonStyle.ConstSet(StyleConst.FormTitleHeight) = ribbon.RibbonStyle.ConstSet(StyleConst.FormTitleHeight) - 8
but setting the RibbonStyle of the C1RibbonForm accordingly has no effect on the MDI children. How can I reduce the size of the caption bar of the MDI children?
An alternative solution would be that a theme can also modify the color of the caption bar of a normal Windows Form, but I’ve found no way to do so.
Any help would be appreciated, because this is right now a show stopper for the upgrade.
Best regards, Juergen