怎么使用Canvas改变单个单元格背景色? 求救!!!怎么使用Canvas改变单个单元格背景色?别的方法也行... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用Canvas填充单元格呀,有个fillrect函数 Canvas 是一个对象。你可以到源码中看一下。好多的方法了。 songhtao(三十年孤独) 我想把TStringGrid控件的第一行,第2列的单元格变成兰色,代码应该怎么写? procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);begin with stringgrid1 do begin if (arow=1) and (acol=2) then begin canvas.Brush.Color := clblue; canvas.FillRect(rect); end; end;end; 怎么实现通知其他客户端呢? DELPHI的字符串 DBRichEdit难题 做个小调查, 畅所欲言吧 答者有分 请教关于PowerPoint的问题。 关于QReport的打印问题(高分赠英雄) delphi编程中怎么可以在内存中只加载一个应用程序! treeview 做一个参数管理? 怎么能把自己定义的*.Pas文件加入到Delphi的New Items中,以便以后能够直接选择它建立一个新的应用。 有谁知道注册码? 如何在DELPHI5下编写基于netbios会话的收发数据包的程序? 再问动态数组分配问题!
你可以到源码中看一下。
好多的方法了。
Rect: TRect; State: TGridDrawState);
begin
with stringgrid1 do
begin
if (arow=1) and (acol=2) then
begin
canvas.Brush.Color := clblue;
canvas.FillRect(rect);
end;
end;
end;