X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d10f4bf950c4ad064b982fe8fe07d5ca5e3af7ba..07215d86e03dd4f80a578b4e27d01e58bf2b28dd:/samples/newgrid/griddemo.h diff --git a/samples/newgrid/griddemo.h b/samples/newgrid/griddemo.h index d10a53a2f3..8be1e67377 100644 --- a/samples/newgrid/griddemo.h +++ b/samples/newgrid/griddemo.h @@ -44,6 +44,7 @@ class GridFrame : public wxFrame void AutoSizeCols( wxCommandEvent& ); void SetLabelColour( wxCommandEvent& ); void SetLabelTextColour( wxCommandEvent& ); + void SetLabelFont(wxCommandEvent &); void SetRowLabelHorizAlignment( wxCommandEvent& ); void SetRowLabelVertAlignment( wxCommandEvent& ); void SetColLabelHorizAlignment( wxCommandEvent& ); @@ -107,6 +108,7 @@ public: ID_AUTOSIZECOLS, ID_SETLABELCOLOUR, ID_SETLABELTEXTCOLOUR, + ID_SETLABEL_FONT, ID_ROWLABELALIGN, ID_ROWLABELHORIZALIGN, ID_ROWLABELVERTALIGN, @@ -177,7 +179,7 @@ public: 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 */ }