宝
宝宝龙
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.DBGrid1DragOver(Sender, Source: TObject; X, Y: Integer;
State: TDragState; var Accept: Boolean);????是个什么函数??
begin
Accept:=True;什么意思???
end;
procedure TForm1.DBGrid1DragDrop(Sender, Source: TObject; X, Y: Integer);和上面的函数有什么不同
begin
if Source<>ComboBox1 then
Exit;
with Sender as TDBGrid do
begin
Perform(wm_LButtonDown,0,MakeLong(x,y));
PerForm(WM_LButtonUp, 0,MakeLong(x,y));
SelectedField.Dataset.edit;
SelectedField.AsString:=ComboBox1.Text;
end;
整个一段有没有帮我解释一下
谢谢
end;
State: TDragState; var Accept: Boolean);????是个什么函数??
begin
Accept:=True;什么意思???
end;
procedure TForm1.DBGrid1DragDrop(Sender, Source: TObject; X, Y: Integer);和上面的函数有什么不同
begin
if Source<>ComboBox1 then
Exit;
with Sender as TDBGrid do
begin
Perform(wm_LButtonDown,0,MakeLong(x,y));
PerForm(WM_LButtonUp, 0,MakeLong(x,y));
SelectedField.Dataset.edit;
SelectedField.AsString:=ComboBox1.Text;
end;
整个一段有没有帮我解释一下
谢谢
end;