procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin
if gdSelected in State then
begin
CheckBox1.SetBounds(Rect.Left + StringGrid1.Left + 2,
Rect.Top + StringGrid1.Top + 2, StringGrid1.ColWidths[ACol],
StringGrid1.RowHeights[ARow]);
end;
end;
Rect: TRect; State: TGridDrawState);
begin
if gdSelected in State then
begin
CheckBox1.SetBounds(Rect.Left + StringGrid1.Left + 2,
Rect.Top + StringGrid1.Top + 2, StringGrid1.ColWidths[ACol],
StringGrid1.RowHeights[ARow]);
end;
end;
解决方案 »
- 字符串 连接 变量
- delphi7下用Utf8Encode转换特殊字符?
- 请问有人知道李维的Email或其它联系方式吗??想请教他问题。。。
- 怎么使ADOConnection动态连接sqlserver的
- 提问Excel导出后为何有引号?
- 愁愁愁!怪怪怪!
- 使用Dephi如何读取Excel表中的数据?(急!!!在线等!100分!)
- 易得分!——安装teechart pro for D6控件问题,Ding了给分!
- ADO读取建行交易明细XLS
- ListView排序出错,帮我看看
- ???为什么数据加不进出,SQL语句,没错阿
- 强烈建议---DELPHI的高手留下你的联系方式,帮助更多新人。。。(我是新人) the second
Rect: TRect; State: TGridDrawState);
begin
if gdFocused in State then
begin
CheckBox1.SetBounds(Rect.Left + StringGrid1.Left + 2,
Rect.Top + StringGrid1.Top + 2, Rect.right-Rect.left,
Rect.Bottom-Rect.Top);
end;
end;
通过判断STRINGGRID.ROW使控件上下移动