Problems embedding Gecko (Mozilla) in Delphi app
"Dave Murray" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm building a Delphi app which uses the Gecko Rendering Engine (Mozilla) to display web pages. I'm using the Mozilla ActiveX Control, which is designed to replace the MS TWebBrowser. I've hooked up the control to my GUI and can view pages no problem but I'm having some problems. I'm trying to use ExecWB as per the TWebBrowser using commands like: mzGecko.ExecWB(OLECMDID_PAGESETUP, OLECMDEXECOPT_PROMPTUSER); As with TWebBrowser I've added the following sections to my unit: initialization OleInitialize(nil); finalization OleUninitialize; Calling the Print command works but when calling Page Setup or Print Preview I'm getting this exception: EOleException - Trying to revoke a drop target that has not been registered. I'm also using ExecWB to call Edit menu commands, Copy and Select All work but Clear All doesn't. I'm using Win 2k Pro SP4, Delphi 6 Enterprise and Mozilla 1.4 (Gecko/20030624). Any ideas? Thanks, Dave. ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy No Snore & Get a Good Night's Sleep. Natural Oral Spray -- $24.95 (1 bottle, 1 month supply, with sweet almond oil, eucalyptus oil & more). http://www.challengerone.com/t/l.asp?cid=2881&lp=h515.html http://us.click.yahoo.com/2oMABA/nuYGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> CodeCoffer - new Delphi code protection Tool! http://www.delphicollection.com/public/CodeCoffer.htm --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/