Hi,

I have a tutorial and demo about using the ActiveX control in Delphi on: http://delphi.mozdev.org/

Unfortunately I don't have an answer to your problem. I tried using SetFocus in various places, including the OnDocumentComplete, OnDownloadComplete and OnNavigateComplete2 events. Examining the behaviour of my demo app carefully, switching to another app and then back or pressing tab twice restores focus to my TEdit. There are only two controls on my form that can take focus so it seems the TEdit has focus but isn't recieveing keyboard messages. Very strange.

Sorry I don't have a fix but maybe the extra info will help. Let me know if you come up with a solution.

Dave Murray
Glasgow, UK
PGP KeyID: 0x838592B3

Remove NOSPAM from my email address to reply.





Arnaud wrote:
Hello,

I try the MozillaBrowser in Delphi with this sample : http://www.iol.ie/~locka/mozilla/dbrowse.zip
In the Address control, I just add an OnKeyPressEvent with the code : if key=#13 then Go.Click;


When I try an address (like www.google.fr) and press Enter, the Address control lose the focus. How can I let the focus in this control ?

Thank you.

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to