void AutoSizeCols( wxCommandEvent& );
void SetLabelColour( wxCommandEvent& );
void SetLabelTextColour( wxCommandEvent& );
+ void SetLabelFont(wxCommandEvent &);
void SetRowLabelHorizAlignment( wxCommandEvent& );
void SetRowLabelVertAlignment( wxCommandEvent& );
void SetColLabelHorizAlignment( wxCommandEvent& );
void OnEditorShown(wxGridEvent&);
void OnEditorHidden(wxGridEvent&);
+ void OnSetHighlightWidth(wxCommandEvent&);
+ void OnSetROHighlightWidth(wxCommandEvent&);
+
public:
GridFrame();
~GridFrame();
ID_AUTOSIZECOLS,
ID_SETLABELCOLOUR,
ID_SETLABELTEXTCOLOUR,
+ ID_SETLABEL_FONT,
ID_ROWLABELALIGN,
ID_ROWLABELHORIZALIGN,
ID_ROWLABELVERTALIGN,
ID_DESELECT_COL,
ID_DESELECT_CELL,
+ ID_SET_HIGHLIGHT_WIDTH,
+ ID_SET_RO_HIGHLIGHT_WIDTH,
+
ID_TESTFUNC
};
int GetNumberCols() { return m_sizeGrid; }
wxString GetValue( int row, int col )
{
- return wxString::Format("(%d, %d)", row, col);
+ return wxString::Format(wxT("(%d, %d)"), row, col);
}
void SetValue( int , int , const wxString& ) { /* ignore */ }
MyGridCellAttrProvider();
virtual ~MyGridCellAttrProvider();
- virtual wxGridCellAttr *GetAttr(int row, int col) const;
+ virtual wxGridCellAttr *GetAttr(int row, int col,
+ wxGridCellAttr::wxAttrKind kind) const;
private:
wxGridCellAttr *m_attrForOddRows;
BugsGridFrame();
};
+
#endif // griddemo_h