///////////////////////////////////////////////////////////////////////////
-// Name: generic/gridctrl.h
+// Name: wx/generic/gridctrl.h
// Purpose: wxGrid controls
// Author: Paul Gammans, Roger Gammans
// Modified by:
#if wxUSE_GRID
-#define wxGRID_VALUE_CHOICEINT _T("choiceint")
-#define wxGRID_VALUE_DATETIME _T("datetime")
+#define wxGRID_VALUE_CHOICEINT wxT("choiceint")
+#define wxGRID_VALUE_DATETIME wxT("datetime")
// the default renderer for the cells containing string data
#include "wx/datetime.h"
-// the default renderer for the cells containing Time and dates..
+// the default renderer for the cells containing times and dates
class WXDLLIMPEXP_ADV wxGridCellDateTimeRenderer : public wxGridCellStringRenderer
{
public:
virtual wxGridCellRenderer *Clone() const;
- // parameters string format is "width[,precision]"
+ // output strptime()-like format string
virtual void SetParameters(const wxString& params);
protected:
#endif // wxUSE_DATETIME
-// the default renderer for the cells containing Time and dates..
+// renders a number using the corresponding text string
class WXDLLIMPEXP_ADV wxGridCellEnumRenderer : public wxGridCellStringRenderer
{
public:
virtual wxGridCellRenderer *Clone() const;
- // parameters string format is "item1[,item2[...,itemN]]"
+ // parameters string format is "item1[,item2[...,itemN]]" where itemN will
+ // be used if the cell value is N-1
virtual void SetParameters(const wxString& params);
protected: