#include "wx/dcclient.h"
#include "wx/timer.h"
#include "wx/settings.h"
+ #include "wx/msgdlg.h"
#endif
#include "wx/stockitem.h"
// wxDataViewDateRenderer
// ---------------------------------------------------------
+#if wxUSE_CALENDARCTRL
+
class wxDataViewDateRendererPopupTransient: public wxPopupTransientWindow
{
public:
DismissAndNotify();
}
+#endif // wxUSE_CALENDARCTRL
+
IMPLEMENT_ABSTRACT_CLASS(wxDataViewDateRenderer, wxDataViewCustomRenderer)
wxDataViewDateRenderer::wxDataViewDateRenderer( const wxString &varianttype,
model->GetValue( variant, col, row );
wxDateTime value = variant.GetDateTime();
+#if wxUSE_CALENDARCTRL
wxDataViewDateRendererPopupTransient *popup = new wxDataViewDateRendererPopupTransient(
GetOwner()->GetOwner()->GetParent(), &value, model, col, row );
wxPoint pos = wxGetMousePosition();
popup->Move( pos );
popup->Layout();
popup->Popup( popup->m_cal );
-
+#else
+ wxMessageBox(value.Format());
+#endif
return true;
}
}
bool wxDataViewColumn::GetSortable()
-{
+{
// TODO
return false;
}