Delphi Devexpress VCL dxRibbon Bar 的高度问题.

jjrzs jjrzs 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
从控件面板中拖曳 dxRibbon 控件到 Form 上,dxRibbon 自动展开成一个 Height=148 的 Bar (当然是如果事先拖入了 dxBarManager 控件的话) 曾多次想修改其 Height 属性未果。请问 dxRibbon 的 Height 属性值能修改吗?

曾在其官方网站看到这段话:
1 - Inherit from the Ribbion control, and override the CreateViewInfo method to
return your custom ViewInfo class.
protected override RibbonViewInfo CreateViewInfo()
{
return new SmallFlexRibbonViewInfo(this);
}

2 - Build a custom ViewInfoClass that supports the sizes you want.

Your custom ViewInfo class will need to override the 2 layout calculator
methods and return custom layout calculators.

You'll also want to override the GroupContentHeight property to return your
height value.

E文不太过关,请老师指点。。。多谢多谢!!!
...全文
评论 7
收藏 已收藏
分享
返回顶部
jjrzs
Delphi 5,944 成员 262,941 内容