]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/control.cpp
forcefully get rid of the scrollbars in CalcWindowSizes() if we don't need them any...
[wxWidgets.git] / src / palmos / control.cpp
index bf5e892cd4aa7a6428735bc468d6392e2f956e2c..2211ff15370a6447041051778c892a1187cc31f8 100644 (file)
     #include "wx/button.h"
     #include "wx/checkbox.h"
     #include "wx/radiobut.h"
+    #include "wx/slider.h"
+    #include "wx/toplevel.h"
 #endif
 
-#include "wx/toplevel.h"
 #include "wx/tglbtn.h"
-#include "wx/slider.h"
 
 #include <Control.h>
 #include <Form.h>
@@ -152,7 +152,7 @@ bool wxControl::PalmCreateControl(int style,
 
     m_palmControl = true;
 
-    SetInitialBestSize(size);
+    SetInitialSize(size);
     SetLabel(label);
     Show();
     return true;
@@ -202,7 +202,7 @@ bool wxControl::PalmCreateField(const wxString& label,
 
     m_palmField = true;
 
-    SetInitialBestSize(size);
+    SetInitialSize(size);
     SetLabel(label);
     Show();
     return true;