Delphi7中cxGrid控件自动编号
来源:互联网 发布:床垫哪个好 知乎 编辑:程序博客网 时间:2024/06/08 10:47
在cxGrid的GridView属性设置事件onGridCustomDrawIndicatorCell,事件关键代码如下:
procedure TfrmHidden_Trouble.GridCustomDrawIndicatorCell( Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxCustomGridIndicatorItemViewInfo; var ADone: Boolean); var AIndicatorViewInfo: TcxGridIndicatorRowItemViewInfo; ATextRect: TRect; aCV:TcxCanvas; begin inherited; //======引用单元 cxLookAndFeelPainters if not (AViewInfo is TcxGridIndicatorRowItemViewInfo) then Exit; aCV:=ACanvas ; ATextRect := AViewInfo.ContentBounds; AIndicatorViewInfo := AViewInfo as TcxGridIndicatorRowItemViewInfo; InflateRect(ATextRect, -2, -1); Sender.LookAndFeelPainter.DrawHeader(ACanvas, AViewInfo.ContentBounds, ATextRect, [], cxBordersAll, cxbsNormal, taCenter, TcxAlignmentVert(vaCenter), False, False, IntToStr(AIndicatorViewInfo.GridRecord.Index + 1), acv.Font,acv.font.Color,acv.Brush.color ); ADone := True; end;
- Delphi7中cxGrid控件自动编号
- 在DataGrid等控件中添加自动编号的列
- GridView控件自动编号实现
- CXGrid 控件
- Delphi中CxGrid控件使用总结
- BCB中cxGrid控件使用心得
- sqlserver中重置自动编号
- DataGrid中添加自动编号
- 怎么能让CXGRID,中某列内嵌的控件自动下拉
- 关于DataGrid等控件中的自动编号
- 关于DataGrid等控件中的自动编号
- 关于DataGrid等控件中的自动编号
- 关于DataGrid等控件中的自动编号
- 关于DataGrid等控件中的自动编号
- 关于DataGrid等控件中的自动编号
- 关于DataGrid控件中的自动编号
- 关于DataGrid控件中的自动编号
- java实现自动编号系统(类似于word中自动编号)
- ODE典型的仿真过程
- Jquery 插件 之 maphilight
- Linux那些事儿 之 戏说USB(11)不一样的core
- 如何创建一幅白色或黑色图
- weblogic10.3.5 内存修改
- Delphi7中cxGrid控件自动编号
- [9月28日的脚本] 用于查找用户登录持续时间的脚本示例(PowerShell)
- Apache+php 5.3.8的安装与配置
- TI C672x DSP Memory Map Summary(备)
- 日期/case函数用法
- imx53 QSB添加模拟I2C
- Centos用yum安装X Winodw
- test
- linux查看CPU性能及工作状态的指令mpstat,vmstat,iostat,sar,top