Load the wxWidgets homepage by default in the wxWebView sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -538,8 +538,8 @@ bool wxMiniApp::OnInit()
|
|||||||
stop = m_toolbar->AddTool(wxID_ANY, _("Stop"), wxBitmap(stop_xpm));
|
stop = m_toolbar->AddTool(wxID_ANY, _("Stop"), wxBitmap(stop_xpm));
|
||||||
reload = m_toolbar->AddTool(wxID_ANY, _("Reload"), wxBitmap(refresh_xpm));
|
reload = m_toolbar->AddTool(wxID_ANY, _("Reload"), wxBitmap(refresh_xpm));
|
||||||
|
|
||||||
url = new wxTextCtrl(m_toolbar, wxID_ANY, wxT("http://www.google.com"),
|
url = new wxTextCtrl(m_toolbar, wxID_ANY, wxT(""), wxDefaultPosition,
|
||||||
wxDefaultPosition, wxSize(400, -1), wxTE_PROCESS_ENTER );
|
wxSize(400, -1), wxTE_PROCESS_ENTER );
|
||||||
m_toolbar->AddControl(url, _("URL"));
|
m_toolbar->AddControl(url, _("URL"));
|
||||||
tools = m_toolbar->AddTool(wxID_ANY, _("Menu"), wxBitmap(wxlogo_xpm));
|
tools = m_toolbar->AddTool(wxID_ANY, _("Menu"), wxBitmap(wxlogo_xpm));
|
||||||
//m_toolbar->SetDropdownMenu(tools->GetId(), toolsMenu);
|
//m_toolbar->SetDropdownMenu(tools->GetId(), toolsMenu);
|
||||||
@@ -578,6 +578,7 @@ bool wxMiniApp::OnInit()
|
|||||||
|
|
||||||
// ---- Create the web view
|
// ---- Create the web view
|
||||||
m_browser_ctrl = wxWebView::New(mainpane, wxID_ANY);
|
m_browser_ctrl = wxWebView::New(mainpane, wxID_ANY);
|
||||||
|
m_browser_ctrl->LoadUrl("http://www.wxwidgets.org");
|
||||||
|
|
||||||
// ---- Create the notification panel
|
// ---- Create the notification panel
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user