ehlib新手请教,绘制的时候怎么知道当前行是否被选中?在Row Detail Panel Active的情况下,如何不显示前面的展开“+”号?

范特西 2013-07-18 05:57:52
刚接触ehlib,如果问题很白,还请大侠们不宁赐教!绘制的时候如何区分当前行与选中行,DrawColumnCell的时候,当前是gdSelected状态的。单击选中一行后,点击另外一行的展开按钮,当前行跳到展开的哪一行,但展开的那行是没有选中的,即当前行没有选中,在DrawColumnCell的时候怎么区分?
有没有办法在RowDetailPanel为Active的情况下,不显示展开按钮,我想通过双击该行直接展开!在线等大大回复!
...全文
167 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
范特西 2013-07-19
  • 打赏
  • 举报
回复
tBook := mtPatient.GetBookmark; tIdx := paDBGrid.SelectedRows.IndexOf(tBook); 如果tIdx=-1说明未被选中,自己搞定! 展开按钮能不能不绘制,或则自己绘制么?有大大搞过没?
sololie 2013-07-18
  • 打赏
  • 举报
回复
不熟ehlib,别哭了,哭也没用。撸过
EhLib 5.0 Build 5.0.13 Russian version. Full source included. ------------------------------------------------------------------- The Library contains components and classes for Borland Delphi versions 5, 6, 7, 8 & 9 , Borland C++ Builder versions 5 & 6, Borland Developer Studio 2006, CodeGear Delphi 2007, CodeGear RAD Studio 2009 and Embarcadero RAD Studio 2010. TABLE OF CONTENTS ----------------- Overview Installation Library Installation Help Demonstration Programs Registering and Prices Other information About author Overview -------- The Library contains several components and objects. TDBGridEh component TDBGridEh provides all functionality of TDBGrid and adds several new features as follows: Allows to select records, columns and rectangle areas. Special titles that can correspond to several/all columns. Footer that is able to show sum/count/other field values. Automatic column resizing to set grid width equal client width. Ability to change row and title height. Allows automatic broken of a single line long title and data row to a multiline. Title can act as button and, optionally show a sort marker. Automatically sortmarking. Ability to truncate long text with ellipsis. Lookup list can show several fields. Incremental search in lookup fields. Frozen columns. DateTime picker support for TDateField and TDateTimeField. Allows to show bitmaps from TImageList depending on field value. Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and data rows. Allows to draw memo fields. Multiline inplace editor. Proportional scrolling independently of sequenced of dataset. Automatically show checkboxes for Boolean fields. Allows to show checkboxes for other type of fields. Has a procedures to save and restore layout (visible columns, columns order, columns width, sortmarkers, row height) in/from registry or

5,932

社区成员

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

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