Solved

What is the minimum IE version required to use EmbeddedWb?

Posted on 2002-05-10
5
394 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
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.

705 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

17 Experts available now in Live!

Get 1:1 Help Now