From 0cfc2a92dc87b83a2eb02d9d91b97354effeb29f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 27 May 2004 11:26:28 +0000 Subject: [PATCH] Position change - still can't use default size for Wince/desktop git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/toolbar/toolbar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 97ed31ee62..d32714c31b 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -257,7 +257,7 @@ bool MyApp::OnInit() MyFrame* frame = new MyFrame((wxFrame *) NULL, -1, _T("wxToolBar Sample"), #ifdef __WXWINCE__ - wxPoint(0, 0), wxDefaultSize + wxDefaultPosition, wxDefaultSize #else wxPoint(100, 100), wxSize(550, 300) #endif @@ -265,7 +265,9 @@ bool MyApp::OnInit() frame->Show(TRUE); +#ifndef __SMARTPHONE__ frame->SetStatusText(_T("Hello, wxWidgets")); +#endif SetTopWindow(frame); @@ -387,8 +389,10 @@ MyFrame::MyFrame(wxFrame* parent, m_rows = 1; m_nPrint = 1; +#ifndef __SMARTPHONE__ // Give it a status line CreateStatusBar(); +#endif // Give it an icon SetIcon(wxICON(mondrian)); @@ -707,6 +711,7 @@ void MyFrame::OnInsertPrint(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnToolEnter(wxCommandEvent& event) { +#ifndef __SMARTPHONE__ if (event.GetSelection() > -1) { wxString str; @@ -715,6 +720,7 @@ void MyFrame::OnToolEnter(wxCommandEvent& event) } else SetStatusText(_T("")); +#endif } void MyFrame::OnToggleRadioBtn(wxCommandEvent& event) -- 2.45.2