Solved

What is the minimum IE version required to use EmbeddedWb?

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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