Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

What is the minimum IE version required to use EmbeddedWb?

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
Richard2000
Asked:
Richard2000
  • 3
  • 2
1 Solution
 
intheCommented:
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
 
Richard2000Author Commented:
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
 
intheCommented:
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
 
Richard2000Author Commented:
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
 
intheCommented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now