I'm using D4, but if the TWebBrowser is the ActiveX IE control then here's
how I was doing the copy to clipboard (before I threw the towel in and
bought HTML Components instead)

var
  o1,o2 : OleVariant;
begin
  o1 := EmptyParam;
  o2 := EmptyParam;
  HTML1.ExecWB(OLECMDID_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER, o1, o2);
  HTML1.ExecWB(OLECMDID_COPY, OLECMDEXECOPT_DONTPROMPTUSER, o1, o2);
end;

I recall strange errors about 'trying to revoke non-registered drop targets'
etc... anyway maybe this gives you some clues.

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Nahum Wild
> Sent: Tuesday, 12 September 2000 5:35
> To: Multiple recipients of list delphi
> Subject: [DUG]: TWebBrowser
>
>
> Anybody used the TWebBrowser VCL component from under the 'Internet' tab?
> (Delphi 5 Pro)  I've tried using it and can't copy any text form any
> webpages that it shows.  Its most annoying.  It completely ignores my
> control+C key press.
>
> Has anybody encountered this problem and if so did they solve it??
>
>
> Thanks,
>
>
>
>
> Nahum Wild
> Game Designer
> Realism Ltd
>
>
> Pre-Register now for the ESDAO beta test!
> http://www.esdao.net
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to