Hi,
I have a Borland C++ Builder app that is a simple FORM with a TCppWebBrowser and a button. I have two callbacks, one when the form is created, and one when the user pushes the button. Both callbacks just navigate to google.
================================ __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { CppWebBrowser1->Navigate(WideString("http://www.google.com")); }
void __fastcall TForm1::DoIt1Click(TObject *Sender) { CppWebBrowser1->Navigate(WideString("http://www.google.com")); } ================================
On Windows this works as expected. When the form is displayed, google is displayed in the browser. Whenever you push the button the browser is reloaded.
On Wine with the Mozilla ActiveX Control v1.7.12, when the form is first loaded nothing is displayed. WINEDEBUG=+ole shows "Browser is not in a valid state".
Pushing the button subsequent times reloads the web site as expected.
Before I start digging deeper, I was hoping somebody might have some insight to lead me down the correct path.
Thanks! Phil
Hi.
Phil Lodwick wrote:
Before I start digging deeper, I was hoping somebody might have some insight to lead me down the correct path.
Well, you can't do much with Mozilla ActiveX Control on Wine side... However the plan is to get rid of Wine's dependency on it. Currently MSHTML is implemented on top of Gecko (it can use Gecko from Mozilla ActiveX Control installation) and there is an implementation of WebBrowser on top of MSHTML. It's currently very incomplete, but, in some cases, it may work better than Mozilla ActiveX (eg. in Picasa). You may want to try it out. To do so you should install Mozilla ActiveX and then remove key HKEY_CLASSES_ROOT\CLSID{1339B54C-3453-11D2-93B9-000000000000} and click "no" in the dialog asking if to install Mozilla ActiveX Control (it's installed, but shdocvw can't find it).
You may find a bit more about this on the Wiki: http://wiki.winehq.org/MozillaIntegration
BTW: That's the thing that I encourage to try if an app doesn't work with Mozilla ActiveX Control. I'm interested in any reports of successes, but I don't expect much yet.
Jacek