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文不太过关,请老师指点。。。多谢多谢!!!
...全文
743 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
polly_110 2011-04-10
  • 打赏
  • 举报
回复
楼主, 借此处问你一下:

你的程序,有多少个窗体? 编译出来的程序,最后有多大呢?

我也用这个控件写过一个小程序, 但是: 问题是编译出来的可执行程序,太大了. 只有几个窗体,就好几M 呢.

就是因为体积问题, 现在,换用 business skin form 控件了..这个控件, 也没有用熟练..
lvghua 2011-04-10
  • 打赏
  • 举报
回复
太牛了,牛人啊,搞定了
vbFly 2009-09-06
  • 打赏
  • 举报
回复
修改dxRibbon.pas。把原来的常量dxRibbonGroupRowCount改成全局变量,在TdxCustomRibbon增加属
性GroupRowCount:Integer来设置这个值
guyuelang 2009-04-13
  • 打赏
  • 举报
回复
我也是啊 遇到上面问题
属性也没有找到
有哪位大侠来教教
seewhy0727 2009-04-07
  • 打赏
  • 举报
回复
遇到如上问题,急待达人解决啊。
清风,你所说的属性代码里并不存在。很难找到到底是哪里锁住的。
楼主,请问你的问题是否已有其他解决办法了呢。
tsingfeng_bhcss 2009-03-19
  • 打赏
  • 举报
回复
GroupContentHeight设置你想要的高度
tsingfeng_bhcss 2009-03-19
  • 打赏
  • 举报
回复
自定义类ViewInfoClass ,重写layout calculator 方法,再重写属性GroupContentHeight,没用过这个控件,具体怎么写和普通自定义类应该差不多
================================== ==注意:一共2个压缩包,这是第1个== ================================== *提示:无自动安装程序,包含所有源码、例子、帮助,请按照安装顺序安装!!! New Features in 13.1.4 (VCL Product Line) Breaking Changes To learn about breaking changes in this version, please refer to the following page: Breaking Changes in 13.1.4 (VCL Product Line) Known Issues To learn about known issues in this version, please refer to the following page: Known Issues in 13.1.4 (VCL Product Line) The following sections list all minor and major changes in DevExpress VCL 13.1.4. Note that products, controls and libraries which aren't mentioned in the list below are included in the unified installer for compatibility, but have not been updated. Enhancements and Updates New Features/Updates VCL Subscription ExpressTile Control ExpressDataController Resolved Issues ExpressBars Suite ExpressLayout Control ExpressNavBar ExpressPageControl ExpressPivotGrid Suite ExpressPrinting System ExpressQuantumGrid Suite ExpressQuantumTreeList Suite ExpressScheduler Suite ExpressSkins Library ExpressSpreadSheet ExpressTile Control ExpressVerticalGrid Suite ExpressDataController ExpressEditors Library ExpressLibrary Installation (VCL) New Features/Updates VCL Subscription S170932 - Documentation - Describe that the ExpressLayout Control and ExpressDocking Library are incompatible ExpressTile Control S172299 - Center the Back button and title text vertically within the title Common Libraries ExpressDataController S172107 - Add the capability to disable multi-threaded operations at the level of custom data sources (TcxCustomDataSource descendants) Resolved Issues ExpressBars Suite Q476901 - Documentation - The "Ribbon Application Menu" topic does not contain the menu creation steps that are specific to TdxRibbonBackstageView Q452658 - Documentation - The TdxCustomRibbonGalleryItem.GalleryGroups property is not marked as deprecated and is used in topics instead of TdxCustomRibbonGalleryItem.GalleryCategories Q513198 -

5,928

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧