Solved

What is the minimum IE version required to use EmbeddedWb?

Posted on 2002-05-10
5
395 Views
Last Modified: 2010-04-04
Hi,

I am considering using the EmbeddedWb component to implement a web browser on a form in Delphi 4 Pro.  I am currently implementing it with TWebBrowser.  Whilst TWebBrowser basically works, there are a lot of problems with it.  I assume TWebBrowser works with IE 4 upwards.  If possible, I want my compiled EXE to run on any computer with IE 4 or better installed.  If I use EmbeddedWb, what is the minimum IE version required (will it work with IE 4 or IE 5.0)?

One last thing, if I use EmbeddedWb, will the following work...

* The mouse wheel (it doesn't work in TWebBrowser without adding further code).
* Programmatically setting the focus to the web browser (WebBrowser.SetFocus doesn't work with TWebBrowser).

Thanks in Advance,

Richard
0
Comment
Question by:Richard2000
  • 3
  • 2
5 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 7002643
hi,
it requires TWebbrowser (as its anscestor)so while it should still work in ie4 alot of functionality will be missing ,it was really made for minimum of ie5
note,
alot of the other components/units on the site require IE5.5

mouse wheels work fine in TWebbrowsor and EmBeddedWB for me,are you sure your mouse drivers are installed ok?

setfocus works good in embeddedWB ,it has seperate function for it:
EmbeddedWB1.SetFocusToDoc;

Regards Barry
0
 

Author Comment

by:Richard2000
ID: 7003567
Hi,

Many thanks for your comment.  I have just installed and briefly tested EmbeddedWB for the first time.  I like it as many of my TWebBrowser problems have gone since using it.

I find that the mouse wheel doesn't work with either TWebBrowser or EmbeddedWB.  If you search for "twebbrowser mouse wheel" (without the quotes) at groups.google.com, you will find many people saying that the mouse wheel doesn't work with TWebBrowser without adding additional code.  I think the mouse wheel driver is installed correctly because it works with other applications and functions correctly within other Delphi components like the TScrollBox, but it has no effect with TWebBrowser or EmbeddedWB.  Any ideas?

SetFocusToDoc works fine in EmbeddedWB.  Thanks.

One problem I've noticed with EmbeddedWB is that when the user clicks on the EmbeddedWB, keyboard shortcuts to other components on the same form don't work.  For example, I have a Navigate menu and a Back menu item on that menu with the shortcut CTRL + B.  However, when the user presses CTRL + B and the EmbeddedWB has the focus, the menu code isn't activated.  Do you know any way around this?

Thanks,

Richard
0
 
LVL 17

Expert Comment

by:inthe
ID: 7004546
hi,
mousewheel ive never had problem with so dont have any experience there ..

im guessing it does work ok in normal internet explorer?
it doesnt suprise me though that it causes problems as they keyboard causes enough :)

your shortcuts wont be working because of the message handling of the activex.(other activex's display these problems too).
the problem is the custom message handler in embeddedwb is nessesary to get around alot of the standard twebbrowsers faults,there has been many different versions of this handler but imho embeddedwb has one of the best implementations.
one idea would be too call DisableMessagehandler event of embeddedwb on form create and write your own mesage handler
(
take a look here for more info:
http://members.shaw.ca/iedelphi/webbrowser.htm#bugs2
 )


0
 

Author Comment

by:Richard2000
ID: 7006748
Hi,

Many thanks for your comment.

The mouse wheel is a bit of a mystery to me.  It works fine in IE, other programs, even other Delphi components but not with TWebBrowser or TEmbeddedWB.

Actually, EmbeddedWB's message handler is very good and all of the shortcuts *within EmbeddedWB* seem to work fine.  The only problem is with accessing keyboard shortcuts on *other* Delphi components such as a menu, when the EmbeddedWB has the focus.

I found an interesting event in EmbeddedWB called OnTranslateAccelerator.  This event lets you intercept shortcuts such as CTRL + B.  However, I find that it does not fire when a key is pressed with the left Alt key (such as ALT + B).  Do you know why this is?

Richard
0
 
LVL 17

Expert Comment

by:inthe
ID: 7007388
hi
you are not having much good luck .
both alt keys are working fine here .

i made a test for it also on the using the OnTranslateAcceleratorand it works ok like this:

//test for left alt and b

function TForm1.EmbeddedWB1TranslateAccelerator(const lpMsg: PMsg;
  const pguidCmdGroup: PGUID; const nCmdID: Cardinal): HRESULT;
begin
if (getkeystate(VK_LMENU) < 0) and (lpmsg.wParam = Ord('B')) then
begin
result:=s_ok;
Showmessage('left alt and b pressed');
end
else if (getkeystate(VK_RMENU) < 0) and (lpmsg.wParam = Ord('B')) then
begin
result:=s_ok;
Showmessage('Right alt and b pressed');
end;

end;
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

20 Experts available now in Live!

Get 1:1 Help Now