procedure TForm1.DrawGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
var i,j : integer;
begin
if (ACol=2) and (ARow=2) thenbegin
end;
end;
那位高手帮帮忙。。小弟是个新手。
Rect: TRect; State: TGridDrawState);
var i,j : integer;
begin
if (ACol=2) and (ARow=2) thenbegin
end;
end;
那位高手帮帮忙。。小弟是个新手。
解决方案 »
- 【討論,討論】Delphi (Object Pascal), C# 和 .Net(Dot Net) 分別和優點在哪?
- 为什么反复调用一个赋值函数会造成溢出呢???
- 在delphi的打印里设计时创建了一个Direct Data View,如何添加它的字段?谢谢
- overload类型的函数到底是降低编译速度还是执行速度?
- IntToStr有问题吗?
- 咨询什么按纽控件能加载Gif图??
- 急救,分辨率问题,在线等待
- 怎么利用对方的计算机名来得到计算机名IP 地址.
- 有关在组件中使用TBlobStream的一点儿体会
- 100分求解(分数可以加):怎样在WIN2000中禁止特定程序运行?
- 怎么用delphi控制excel里的文本框,包括创建、设置文字,字体等,请高手帮忙,100分
- 关于Activex控件的注册古怪问题,十万火急,请高手相助
Rect: TRect; State: TGridDrawState);
var i,j : integer;
begin
if (ACol=2) and (ARow=2) then
SetBkColor(dbgrid1.canvas.handle,clgreen)
else
setbkcolor(dbgrid1.canvas.handle,clwhite);
dbgrid1.Canvas.TextRect(rect,0,0,field.AsString);
dbgrid1.Canvas.Textout(rect.Left,rect.Top,field.AsString);
end;
Rect: TRect; State: TGridDrawState);
begin
if (ACol=2) and (ARow=2) then
with TDrawGrid(Sender).Canvas do
begin
Pen.Style := psClear;
Brush.Color := clBlue;
Rectangle(Rect);
end;
end;