Add support for loading a url in the constructor to the ie backend and update the sample to use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -153,8 +153,7 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample")
|
|||||||
topsizer->Add(m_info, wxSizerFlags().Expand());
|
topsizer->Add(m_info, wxSizerFlags().Expand());
|
||||||
|
|
||||||
// Create the webview
|
// Create the webview
|
||||||
m_browser = wxWebView::New(this, wxID_ANY);
|
m_browser = wxWebView::New(this, wxID_ANY, "http://www.wxwidgets.org");
|
||||||
m_browser->LoadUrl("http://www.wxwidgets.org");
|
|
||||||
topsizer->Add(m_browser, wxSizerFlags().Expand().Proportion(1));
|
topsizer->Add(m_browser, wxSizerFlags().Expand().Proportion(1));
|
||||||
|
|
||||||
SetSizer(topsizer);
|
SetSizer(topsizer);
|
||||||
|
@@ -112,6 +112,7 @@ bool wxWebViewIE::Create(wxWindow* parent,
|
|||||||
|
|
||||||
SetBackgroundStyle(wxBG_STYLE_PAINT);
|
SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||||
SetDoubleBuffered(true);
|
SetDoubleBuffered(true);
|
||||||
|
LoadUrl(url);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user