valuelisteditor怎么实现左边一列改变背景色,右边一列字体颜色设置? valuelisteditor怎么实现左边一列改变背景色,右边一列字体颜色设置? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //参考如下代码:type TValueListEditorAccess = class(TValueListEditor);procedure TForm1.ValueListEditor1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);begin TValueListEditorAccess(Sender).OnDrawCell := nil; if (ACol = 0) and (ARow > 0) then TValueListEditorAccess(Sender).Canvas.Brush.Color := $00C0DCC0; if (ACol = 1) and (ARow > 0) then TValueListEditorAccess(Sender).Canvas.Font.Color := clRed; TValueListEditorAccess(Sender).DrawCell(ACol, ARow, Rect, State); TValueListEditorAccess(Sender).OnDrawCell := ValueListEditor1DrawCell;end; 窗体消失了,跑到主窗体后面了,怎么解决??? 请问如何使用VCL for Web? 请问DELPHI的WebBrowser可否对弹出的提示框发送确定命令? 我想学习三层!谁给我一个例子学学啊![email protected] 各位大虾请指教:内存表打印的问题 演示一下好吗 关于放火墙的过滤问题 关于Socket编程的几个问题,期待高手的降临。 请问谁告诉我Parent 和Owner 区别? 怎样获得一个硬盘的序列号,请附详细的原代码 100分,问题解决,我愿意给你一千分。 导出EXCEL问题...
type
TValueListEditorAccess = class(TValueListEditor);procedure TForm1.ValueListEditor1DrawCell(Sender: TObject; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState);
begin
TValueListEditorAccess(Sender).OnDrawCell := nil;
if (ACol = 0) and (ARow > 0) then
TValueListEditorAccess(Sender).Canvas.Brush.Color := $00C0DCC0;
if (ACol = 1) and (ARow > 0) then
TValueListEditorAccess(Sender).Canvas.Font.Color := clRed;
TValueListEditorAccess(Sender).DrawCell(ACol, ARow, Rect, State);
TValueListEditorAccess(Sender).OnDrawCell := ValueListEditor1DrawCell;
end;