C
coolvc2002
Unregistered / Unconfirmed
GUEST, unregistred user!
大侠您好,
[green]我用d7,用TDHTMLEdit时,实现“剪贴”、“复制”功能时,运行时提示出现“灾难性故障”,我的代码是这样写的:[/green]
procedure TFormDhtml.tbtnCutClick(Sender: TObject);
var
i: OleVariant;
begin
if DHTMLEdit1.QueryStatus(DECMD_CUT) >= DECMDF_ENABLED then
DHTMLEdit1.ExecCommand(DECMD_CUT, OLECMDEXECOPT_DODEFAULT, i);
//DHTMLEdit1.DOM.execCommand('cut',false,0);
end;
procedure TFormDhtml.tbtnCopyClick(Sender: TObject);
begin
DHTMLEdit1.ExecCommand(DECMD_COPY, OLECMDEXECOPT_DODEFAULT);
end;
[green]我用d7,用TDHTMLEdit时,实现“剪贴”、“复制”功能时,运行时提示出现“灾难性故障”,我的代码是这样写的:[/green]
procedure TFormDhtml.tbtnCutClick(Sender: TObject);
var
i: OleVariant;
begin
if DHTMLEdit1.QueryStatus(DECMD_CUT) >= DECMDF_ENABLED then
DHTMLEdit1.ExecCommand(DECMD_CUT, OLECMDEXECOPT_DODEFAULT, i);
//DHTMLEdit1.DOM.execCommand('cut',false,0);
end;
procedure TFormDhtml.tbtnCopyClick(Sender: TObject);
begin
DHTMLEdit1.ExecCommand(DECMD_COPY, OLECMDEXECOPT_DODEFAULT);
end;