]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/datectrl.cpp
Check indices validity better in wxGridStringTable.
[wxWidgets.git] / src / palmos / datectrl.cpp
index 29bc8cbb5ea377b1477776d52b86397fa2ba8e57..e58d7149006d938e58964801ae87282718328f62 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
+    #include "wx/app.h"
 #endif
 
 #endif
 
-#include "wx/app.h"
 #include "wx/dynlib.h"
 
 #include "wx/dynlib.h"
 
-#define _WX_DEFINE_DATE_EVENTS_
 #include "wx/dateevt.h"
 
 #include <Control.h>
 #include "wx/dateevt.h"
 
 #include <Control.h>
@@ -123,7 +122,8 @@ bool wxDatePickerCtrl::SendClickEvent()
     int16_t day = m_dt.GetDay();
     int16_t year = m_dt.GetYear();
 
     int16_t day = m_dt.GetDay();
     int16_t year = m_dt.GetYear();
 
-    if(!SelectDay(selectDayByDay,&month,&day,&year,_T("Pick date")))
+    //if(!SelectDay(selectDayByDay,&month,&day,&year,wxT("Pick date")))
+    if(!SelectDay(selectDayByDay,&month,&day,&year, "Pick date"))
         return false;
     wxDateTime dt(m_dt);
     dt.Set((wxDateTime::wxDateTime_t)day,
         return false;
     wxDateTime dt(m_dt);
     dt.Set((wxDateTime::wxDateTime_t)day,