5,930
社区成员
发帖
与我相关
我的任务
分享
procedure TForm1.FormCreate(Sender: TObject);
begin
self.vg_row:=1;
self.vg_col:=1;
end;
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol,
ARow: Integer; var CanSelect: Boolean);
begin
self.vg_row:=ARow;
self.vg_col:=ACol;
end;
procedure TForm1.StringGrid1DblClick(Sender: TObject);
begin
if self.StringGrid1.Cells[self.vg_col,self.vg_row]='' then
self.StringGrid1.Cells[self.vg_col,self.vg_row]:='√'
else
self.StringGrid1.Cells[self.vg_col,self.vg_row]:='';
end;