]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/control.cpp
relinquish the mouse capture when a dialog is about to be made modal to ensure that...
[wxWidgets.git] / src / palmos / control.cpp
index ca0acf8d1facd84fb50f6a66294c482e6756ec26..2211ff15370a6447041051778c892a1187cc31f8 100644 (file)
     #include "wx/settings.h"
     #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/radiobut.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;