Link to home
Start Free TrialLog in
Avatar of benefit96
benefit96

asked on

Mozilla control in delphi webbrowser

Hello.
Please help me :
I know that it is possible to use mozilla class as a delphi webbrowser.
Please tell me how to do it.
Thanks.
Avatar of moorhouselondon
moorhouselondon
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of benefit96
benefit96

ASKER

yes, thanks ,i read this articles. But help me to implent this component info visual/design application.
i cannot import it as a design component.Help please.
Thanks
1.) Download Modzilla ActiveX Control and install
2.) Select "Import Type Library" from Delphi Project menu
3.) Choose "MozillaControl" in the type library list
4.) Delphi's ActiveX VCL toolbar now contains a "MozillaBrowser" component and you can drop the MozillaBrowser control on a form.



I have checked it for you, to see if it works:

I have downloaded Mozilla ActiveX Control v1.7.1 and installed it according to the link and description below:

http://www.paranoia.clara.net/articles/taming_the_lizard_with_delphi.html
Importing the Control into Delphi
You can now import the control into Delphi in the normal way: Component | Import ActiveX Control | Mozilla Control 1.0 Type Library | Install. The control will appear on the ActiveX page of the Component Palette as TMozillaControl; it doesn't contain its own image so it will use Delphi's default one. The archive accompanying this article contains a *.dcr file that you can use to replace the generated one for a nicer image.

I've received reports from Chris Bensen at Borland that the control doesn't always show up in the Import ActiveX Control wizard in Delphi 7 and Delphi 2005. If this happens to you, start a command prompt, go to the directory where you installed the control and type regsvr32 mozctlx.dll. The control should now show up in the IDE as expected. Do not register any other DLLs!


When I tried to import type library there was no ModzillaControl in the type library list as stated above. So I opened a command window, changed directory to "C:\Program Files\Mozilla ActiveX Control v1.7.1" and registered the DLL with following command: regsvr32 mozctlx.dll

After that the control shows up in Delphi type library list as "ModZilla Control 1.0 Type Library (Version 1.0)"

After installing it into a new package the control appears now in Delphi VCL toolbar component palette on page "ActiveX". From here it now can be dropped onto a Delphi form.

Works fine...






Sorry, forgot to say that I tried it with Delphi 7!!!

Which is your Delphi version???
I have codegear rad studio 2007
ASKER CERTIFIED SOLUTION
Avatar of Thommy
Thommy
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial