Solved

About embeding...

Posted on 1998-01-26
4
133 Views
Last Modified: 2010-04-04
Is there a way to embed Internet Explorer or Netscape into my application that looks just like the one in HomeSite?

Thanks in Advance





0
Comment
Question by:test031097
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
mvz121697 earned 260 total points
Comment Utility
If using Delphi 3 then you can import the MS-IE:
go to Component|Import ActiveX Control, and in the dialog
choose "Microsoft Internet Controls (Version 1.0)". or  (if it is not there) browse to shdocvw.dll.
(This file gets installed with MS-IE 3.0x)

A Twebbrowser component is then created in your ActiveX-component-pallete. Drop one on your form,
and maximize it (align=alClient).
On some event do:

var a,b,c,d:olevariant;
begin
   Webbrowser1.Navigate('www.microsoft.com',a,b,c,d);
end;

Greetings,
MvZ


0
 

Author Comment

by:test031097
Comment Utility
Thanks mvz... It's works but I got a few questions to ask about this...

1) Do I need to include the file 'shdocvw.dll' into my setup files if I want to package my application?

2) Does it work with Internet Explorer 4?

3) What about Netscape Navigator?

If you could answer the 3 questions above, I will give you 60 more points

PS: You will still get the 200 points if you don't wish to answer  my question

Thanks
0
 
LVL 2

Expert Comment

by:mvz121697
Comment Utility
1) Easy way is to include MS-IE in your 'system requirements'.
If MS-IE (3.x) is installed on the client machine, you don't have to do anything extra when installing your app.
I thought distributing only shdocvw.dll without installing the full MS-IE is not allowed by MS (not sure here)

2) Have not tested it, but it should work (if MS implemented the COM interfaces as they should be)

3) Not as an activeX (as far as i know)
But have you thought of:

- Opening the clients 'default browser'
shellexecute(handle,'open',pchar('http://etc.'),nil,nil,
sw_shownormal)

- Starting Netscape like:
shellexecute(handle,'open',pchar(netscape),pchar('http://etc.'),nil,sw_shownormal);

- Controlling Netscape through DDE.
(Browse netscape-homepage for more info)

Greeetings,
MvZ

0
 

Author Comment

by:test031097
Comment Utility
Thanks for the info :o)


0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now