|
发表于 2010-9-1 08:55:26
|
显示全部楼层
做了一个简单的例子,参考一下吧
procedure TCT2.DataGrid1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
begin
if DataGrid1.GetColumnAt(X,Y)=nil then exit;
if DataGrid1.GetColumnAt(X,Y).ColIndex = 0 then
begin
datagrid1.Cursor := business.Forms.Controls.crCross ;
end
else
if DataGrid1.GetColumnAt(X,Y).ColIndex = 1 then
begin
DataGrid1.Cursor := business.Forms.Controls.crHelp ;
end
else
begin
DataGrid1.Cursor := business.Forms.Controls.crDrag ;
end;
end; |
|