- html = new wxHtmlWindow(&dlg, -1, wxDefaultPosition,
- wxSize(380, 160), wxHW_SCROLLBAR_NEVER);
- html->SetBorders(0);
- html->LoadPage("memory:about.htm");
- html->SetSize(html->GetInternalRepresentation()->GetWidth(),
- html->GetInternalRepresentation()->GetHeight());
- topsizer->Add(html, 1, wxALL, 10);
+ #ifdef USE_WEBVIEW
+ wxWebView* browser = wxWebView::New(&dlg, wxID_ANY, wxWebViewDefaultURLStr,
+ wxDefaultPosition, wxSize(380, 160));
+ browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));
+ browser->LoadURL("memory:about.htm");
+ #else // Use wxHtml
+ wxHtmlWindow *browser;
+ browser = new wxHtmlWindow(&dlg, -1, wxDefaultPosition,
+ wxSize(380, 160), wxHW_SCROLLBAR_NEVER);
+ browser->SetBorders(0);
+ browser->LoadPage("memory:about.htm");
+ browser->SetSize(browser->GetInternalRepresentation()->GetWidth(),
+ browser->GetInternalRepresentation()->GetHeight());
+ #endif
+ topsizer->Add(browser, 1, wxALL, 10);