From 9a00d0783409bff9123f9d109833255008b211c4 Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Wed, 29 Jun 2011 16:09:52 +0000 Subject: [PATCH] Give the sample a more sensible initial size for web browsing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/web/web.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/web/web.cpp b/samples/web/web.cpp index 5047a31670..71ecf356da 100644 --- a/samples/web/web.cpp +++ b/samples/web/web.cpp @@ -154,7 +154,7 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample") m_toolbar_stop = m_toolbar->AddTool(wxID_ANY, _("Stop"), stop); m_toolbar_reload = m_toolbar->AddTool(wxID_ANY, _("Reload"), refresh); m_url = new wxTextCtrl(m_toolbar, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(400, -1), wxTE_PROCESS_ENTER ); - m_toolbar->AddControl(m_url, _("URL")); + m_toolbar->AddControl(m_url, _("URL")); m_toolbar_tools = m_toolbar->AddTool(wxID_ANY, _("Menu"), wxBitmap(wxlogo_xpm)); m_toolbar->Realize(); @@ -169,6 +169,9 @@ WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample") SetSizer(topsizer); + //Set a more sensible size for web browsing + SetSize(wxSize(800, 600)); + // Create a log window new wxLogWindow(this, _("Logging")); -- 2.45.2