Delphi Devexpress VCL dxRibbon Bar 的高度问题.
jjrzs 2009-03-19 11:04:51 从控件面板中拖曳 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文不太过关,请老师指点。。。多谢多谢!!!