]> git.saurik.com Git - wxWidgets.git/commitdiff
Position change - still can't use default size for Wince/desktop
authorJulian Smart <julian@anthemion.co.uk>
Thu, 27 May 2004 11:26:28 +0000 (11:26 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 27 May 2004 11:26:28 +0000 (11:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/toolbar/toolbar.cpp

index 97ed31ee62270399f6dd445248cf6158605b02fd..d32714c31b070b1f9c67692b5a0d3e85aa7b0bda 100644 (file)
@@ -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)