NIREP

C:/Programs/source/NIREP/DisplayManager/GridCellChoiceRenderer.h

00001 //Got from: http://wiki.wxwidgets.org/WxGrid
00002 
00003 #ifndef _GRIDCELLCHOICERENDERER_H_INCLUDED_
00004 #define _GRIDCELLCHOICERENDERER_H_INCLUDED_
00005 
00006 #include "wx/grid.h"
00007 #include "wx/laywin.h"
00008 
00009 class wxGridCellChoiceRenderer : public wxGridCellStringRenderer
00010 {
00011 public:
00012         wxGridCellChoiceRenderer(wxLayoutAlignment border = wxLAYOUT_NONE) : 
00013                 m_border(border) {}
00014         virtual void Draw(wxGrid& grid,
00015                 wxGridCellAttr& attr,
00016                 wxDC& dc,
00017                 const wxRect& rect,
00018                 int row, int col,
00019                 bool isSelected);
00020         virtual wxGridCellRenderer *Clone() const
00021                 { return new wxGridCellChoiceRenderer; }
00022 private:
00023         wxLayoutAlignment m_border;
00024 };
00025 
00026 
00027 #endif // _GRIDCELLCHOICERENDERER_H_INCLUDED_
 All Classes Functions Variables Typedefs Enumerations Enumerator