]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/control.cpp
Use GetItem to get item info for events, even for virtual wxListCtrl.
[wxWidgets.git] / src / palmos / control.cpp
index 4f3c12ec0f1401e85886ab6a1c443c56e81e9e9f..2211ff15370a6447041051778c892a1187cc31f8 100644 (file)
     #include "wx/log.h"
     #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/checkbox.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;