Solved

What is the minimum IE version required to use EmbeddedWb?

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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