- dragStatus = wxGRID_DRAG_NONE;
- dragRowOrCol = 0;
- dragStartPosition = 0;
- dragLastPosition = 0;
- divisionPen = NULL;
- wxGridEntryFont = NULL;
- leftOfSheet = wxGRID_DEFAULT_SHEET_LEFT;
- topOfSheet = wxGRID_DEFAULT_SHEET_TOP;
- cellHeight = wxGRID_DEFAULT_CELL_HEIGHT;
- totalGridWidth = 0;
- totalGridHeight = 0;
- colWidths = NULL;
- rowHeights = NULL;
- verticalLabelWidth = wxGRID_DEFAULT_VERTICAL_LABEL_WIDTH;
- horizontalLabelHeight = wxGRID_DEFAULT_HORIZONAL_LABEL_HEIGHT;
- verticalLabelAlignment = wxCENTRE;
- horizontalLabelAlignment = wxCENTRE;
- editControlPosition.x = wxGRID_DEFAULT_EDIT_X;
- editControlPosition.y = wxGRID_DEFAULT_EDIT_Y;
- editControlPosition.width = wxGRID_DEFAULT_EDIT_WIDTH;
- editControlPosition.height = wxGRID_DEFAULT_EDIT_HEIGHT;
- wCursorRow = 0;
- wCursorColumn = 0;
- scrollPosX = 0;
- scrollPosY = 0;
- bEditCreated = FALSE;
- totalRows = 0;
- totalCols = 0;
- gridCells = NULL;
- rowLabelCells = NULL;
- colLabelCells = NULL;
- textItem = NULL;
-}
-
-bool wxGenericGrid::Create(wxWindow *parent, const wxWindowID id, const wxPoint& pos, const wxSize& size,
- const long style, const wxString& name)
-{
- hScrollBar = NULL;
- vScrollBar = NULL;
-
- batchCount = 0;
- cellTextColour = *wxBLACK;
- cellBackgroundColour = *wxWHITE;
- labelTextColour = *wxBLACK;
- labelBackgroundColour = *wxLIGHT_GREY;
- labelBackgroundBrush = NULL;
- labelTextFont = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxBOLD);
- cellTextFont = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxNORMAL);
- textItem = NULL;
- currentRectVisible = FALSE;
- editable = TRUE;
+ m_dragStatus = wxGRID_DRAG_NONE;
+ m_dragRowOrCol = 0;
+ m_dragStartPosition = 0;
+ m_dragLastPosition = 0;
+ m_divisionPen = (wxPen *) NULL;
+ m_leftOfSheet = wxGRID_DEFAULT_SHEET_LEFT;
+ m_topOfSheet = wxGRID_DEFAULT_SHEET_TOP;
+ m_cellHeight = wxGRID_DEFAULT_CELL_HEIGHT;
+ m_totalGridWidth = 0;
+ m_totalGridHeight = 0;
+ m_colWidths = (short *) NULL;
+ m_rowHeights = (short *) NULL;
+ m_verticalLabelWidth = wxGRID_DEFAULT_VERTICAL_LABEL_WIDTH;
+ m_horizontalLabelHeight = wxGRID_DEFAULT_HORIZONAL_LABEL_HEIGHT;
+ m_verticalLabelAlignment = wxCENTRE;
+ m_horizontalLabelAlignment = wxCENTRE;
+ m_editControlPosition.x = wxGRID_DEFAULT_EDIT_X;
+ m_editControlPosition.y = wxGRID_DEFAULT_EDIT_Y;
+ m_editControlPosition.width = wxGRID_DEFAULT_EDIT_WIDTH;
+ m_editControlPosition.height = wxGRID_DEFAULT_EDIT_HEIGHT;
+ m_wCursorRow = 0;
+ m_wCursorColumn = 0;
+ m_scrollPosX = 0;
+ m_scrollPosY = 0;
+ m_editCreated = FALSE;
+ m_totalRows = 0;
+ m_totalCols = 0;
+ m_gridCells = (wxGridCell ***) NULL;
+ m_rowLabelCells = (wxGridCell **) NULL;
+ m_colLabelCells = (wxGridCell **) NULL;
+ m_textItem = (wxTextCtrl *) NULL;
+ m_horizontalSashCursor = (wxCursor *) NULL;
+ m_verticalSashCursor = (wxCursor *) NULL;
+}
+
+bool wxGenericGrid::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
+ long style, const wxString& name)
+{
+ m_batchCount = 0;
+ m_editingPanel = (wxPanel *) NULL;
+ m_hScrollBar = (wxScrollBar *) NULL;
+ m_vScrollBar = (wxScrollBar *) NULL;
+ m_horizontalSashCursor = (wxCursor *) NULL;
+ m_verticalSashCursor = (wxCursor *) NULL;
+ m_cellTextColour = *wxBLACK;
+ m_cellBackgroundColour = *wxWHITE;
+ m_labelTextColour = *wxBLACK;
+// m_labelBackgroundColour = *wxLIGHT_GREY;
+ m_labelBackgroundColour = wxSystemSettings::GetSystemColour( wxSYS_COLOUR_BTNFACE );
+ m_labelBackgroundBrush = (wxBrush *) NULL;
+ m_labelTextFont = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxBOLD);
+ m_cellTextFont = wxTheFontList->FindOrCreateFont(10, wxSWISS, wxNORMAL, wxNORMAL);
+ m_textItem = (wxTextCtrl *) NULL;
+ m_currentRectVisible = FALSE;
+ m_editable = TRUE;