void UpdateDimensions();
void SetCurrentRect (int Row, int Column, int canvasW = -1, int canvasH = -1);
- void HighlightCell (wxDC *dc);
+ void HighlightCell(wxDC *dc, bool doHighlight);
void DrawCellText();
void SetGridClippingRegion(wxDC *dc);
bool m_editable;
bool m_editInPlace;
bool m_inOnTextInPlace;
+ bool m_inScroll;
int m_totalRows;
int m_totalCols;
wxBrush m_labelBackgroundBrush;
wxFont m_labelTextFont;
wxPen m_divisionPen;
+ wxPen m_highlightPen;
wxBitmap* m_doubleBufferingBitmap;
// Position of Edit control
: wxGenericGrid(parent, x, y, width, height, style, name)
{
}
+ wxGrid(wxWindow *parent, wxWindowID id, const wxPoint& pos,
+ const wxSize& size, long style = 0, const wxString& name = "grid")
+ : wxGenericGrid(parent, id, pos, size, style, name)
+ {
+ }
+
};
class WXDLLEXPORT wxGridEvent : public wxCommandEvent
bool m_control;
bool m_shift;
wxGridCell* m_cell;
+
+ int GetRow() const { return m_row; }
+ int GetCol() const { return m_col; }
+ wxPoint GetPosition() const { return wxPoint( m_x, m_y ); }
+ wxGridCell* GetCell() const { return m_cell; }
+ bool ControlDown() const { return m_control; }
+ bool ShiftDown() const { return m_shift; }
};
const wxEventType wxEVT_GRID_SELECT_CELL = wxEVT_FIRST + 1575;