楼主bluesun()2005-06-21 10:15:17 在 Delphi / VCL组件开发及应用 提问
ehlib3中的demo中的代码如下.
procedure TForm1.ppmCutClick(Sender: TObject);
begin
if (ActiveControl is TDBGridEh) then
with TDBGridEh(ActiveControl) do
if CheckCutAction and (geaCutEh in EditActions) then
DBGridEh_DoCutAction(TDBGridEh(ActiveControl),False);
end;
procedure TForm1.ppmCopyClick(Sender: TObject);
begin
if (ActiveControl is TDBGridEh) then
with TDBGridEh(ActiveControl) do
if CheckCopyAction and (geaCopyEh in EditActions) then
DBGridEh_DoCopyAction(TDBGridEh(ActiveControl),False);
end;
procedure TForm1.ppmPasteClick(Sender: TObject);
begin
if (ActiveControl is TDBGridEh) then
with TDBGridEh(ActiveControl) do
if CheckPasteAction and (geaPasteEh in EditActions) then
DBGridEh_DoPasteAction(TDBGridEh(ActiveControl),False);
end;
EditActions属性设置一下即可.:)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货