1 \section{\class{wxGrid
}}\label{wxgrid
}
3 wxGrid is a class for displaying and editing tabular information.
5 {\bf Note:
} there is a new grid implementation from wxWindows
2.1.14,
6 with an API that is backwardly compatible with the one documented here.
7 This documentation is awaiting updates for the new and improved API.
9 \wxheading{Derived from
}
11 \helpref{wxPanel
}{wxpanel
}\\
12 \helpref{wxWindow
}{wxwindow
}\\
13 \helpref{wxEvtHandler
}{wxevthandler
}\\
14 \helpref{wxObject
}{wxobject
}
16 \wxheading{Include files
}
20 \wxheading{Window styles
}
22 There are no specific window styles for this class, but you may use different
23 SetXXX() functions to change the controls behaviour (for example, to enable
26 See also
\helpref{window styles overview
}{windowstyles
}.
30 \helpref{wxGrid classes overview
}{gridoverview
}
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxGrid::wxGrid
}\label{wxgridconstr
}
36 \func{void
}{wxGrid
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\param{const wxPoint\&
}{ pos
},
37 \rtfsp\param{const wxSize\&
}{ size
},
\param{long
}{ style=
0},
\param{const wxString\&
}{name="grid"
}}
39 Constructor. Before using a wxGrid object, you must call CreateGrid to set up the required rows and columns.
41 \membersection{wxGrid::AdjustScrollbars
}\label{wxgridadjustscrollbars
}
43 \func{void
}{AdjustScrollbars
}{\void}
45 Call this function whenever a change has been made via the API that might alter the scrollbar characteristics:
46 particularly when adding or deleting rows, or changing row or column dimensions. For example,
47 removing rows might make it unnecessary to show the vertical scrollbar.
49 \membersection{wxGrid::AppendCols
}\label{wxgridappendcols
}
51 \func{bool
}{AppendCols
}{\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
53 Appends
{\it n
} columns to the grid. If
{\it updateLabels
} is TRUE,
54 the function OnChangeLabels is called to give the application the opportunity to relabel.
56 \membersection{wxGrid::AppendRows
}\label{wxgridappendrows
}
58 \func{bool
}{AppendRows
}{\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
60 Appends
{\it n
} rows to the grid. If
{\it updateLabels
} is TRUE,
61 the function OnChangeLabels is called to give the application the opportunity to relabel.
63 \membersection{wxGrid::BeginBatch
}\label{wxgridbeginbatch
}
65 \func{void
}{BeginBatch
}{\void}
67 Start a BeginBatch/EndBatch pair between which, calls to SetCellValue or
68 SetCellBitmap will not cause a refresh. This allows you to speed up some operations
69 (for example, setting several hundred cell values). You can nest, but not overlap,
72 See also
\helpref{wxGrid::EndBatch
}{wxgridendbatch
},
\helpref{wxGrid::GetBatchCount
}{wxgridgetbatchcount
}.
74 \membersection{wxGrid::CellHitTest
}\label{wxgridcellhittest
}
76 \func{bool
}{CellHitTest
}{\param{int
}{ x
},
\param{int
}{ y
},
\param{int *
}{row
},
\param{int *
}{col
}}
78 Returns TRUE if the x, y panel position coincides with a cell. If so,
{\it row
} and
{\it col
} are
81 \membersection{wxGrid::CreateGrid
}\label{wxgridcreategrid
}
83 \func{bool
}{CreateGrid
}{\param{int
}{ rows
},
\param{int
}{ cols
},
\param{wxString **
}{cellValues=NULL
},
84 \param{short *
}{widths=NULL
},
\param{short
}{ defaultWidth=wxGRID
\_DEFAULT\_CELL\_WIDTH},
85 \param{short
}{ defaultHeight=wxGRID
\_DEFAULT\_CELL\_HEIGHT}}
87 Creates a grid
{\it rows
} high and
{\it cols
} wide. You can optionally specify an array of initial values
88 and widths, and/or default cell width and height.
90 Call this function after creating the wxGrid object.
92 \pythonnote{Currently the
{\tt cellValues
} and
{\tt widths
} parameters
93 don't exisit in the wxPython version of this method. So in other
94 words, the definition of the wxPython version of this method looks like this:
96 CreateGrid(rows, cols,
97 defaultWidth = wxGRID_DEFAULT_CELL_WIDTH,
98 defaultHeight = wxGRID_DEFAULT_CELL_HEIGHT)
102 \membersection{wxGrid::CurrentCellVisible
}\label{wxgridcurrentcellvisible
}
104 \func{bool
}{CurrentCellVisible
}{\void}
106 Returns TRUE if the currently selected cell is visible, FALSE otherwise.
108 \membersection{wxGrid::DeleteCols
}\label{wxgriddeletecols
}
110 \func{bool
}{DeleteCols
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
112 Deletes
{\it n
} columns from the grid at position
{\it pos
}. If
{\it updateLabels
} is TRUE,
113 the function OnChangeLabels is called to give the application the opportunity to relabel.
115 \membersection{wxGrid::DeleteRows
}\label{wxgriddeleterows
}
117 \func{bool
}{DeleteRows
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
119 Deletes
{\it n
} rows from the grid at position
{\it pos
}. If
{\it updateLabels
} is TRUE,
120 the function OnChangeLabels is called to give the application the opportunity to relabel.
122 \membersection{wxGrid::EndBatch
}\label{wxgridendbatch
}
124 \func{void
}{EndBatch
}{\void}
126 End a BeginBatch/EndBatch pair between which, calls to SetCellValue or
127 SetCellBitmap will not cause a refresh. This allows you to speed up some operations
128 (for example, setting several hundred cell values). You can nest, but not overlap,
131 See also
\helpref{wxGrid::BeginBatch
}{wxgridbeginbatch
},
\helpref{wxGrid::GetBatchCount
}{wxgridgetbatchcount
}.
133 \membersection{wxGrid::GetBatchCount
}\label{wxgridgetbatchcount
}
135 \constfunc{int
}{GetBatchCount
}{\void}
137 Return the level of batch nesting. This is initially zero, and will be incremented
138 every time BeginBatch is called, and decremented when EndBatch is called. When the
139 batch count is more zero, some functions (such as SetCellValue and SetCellBitmap) will
140 not refresh the cell.
142 See also
\helpref{wxGrid::BeginBatch
}{wxgridbeginbatch
},
\helpref{wxGrid::EndBatch
}{wxgridendbatch
}.
144 \membersection{wxGrid::GetCell
}\label{wxgridgetcell
}
146 \constfunc{wxGridCell *
}{GetCell
}{\param{int
}{ row
},
\param{int
}{ col
}}
148 Returns the grid cell object associated with this position.
150 wxGenericGrid implementation only.
152 \membersection{wxGrid::GetCellAlignment
}\label{wxgridgetcellalignment
}
154 \constfunc{int
}{GetCellAlignment
}{\param{int
}{ row
},
\param{int
}{ col
}}
156 \constfunc{int
}{GetCellAlignment
}{\void}
158 Sets the text alignment for the cell at the given position, or the global alignment value.
159 The return value is wxLEFT, wxRIGHT or wxCENTRE.
161 \pythonnote{In place of a single overloaded method name, wxPython
162 implements the following methods:
\par
163 \indented{2cm
}{\begin{twocollist
}
164 \twocolitem{{\bf GetCellAlignment(row, col)
}}{}
165 \twocolitem{{\bf GetDefCellAlignment()
}}{}
169 \membersection{wxGrid::GetCellBackgroundColour
}\label{wxgridgetcellbackgroundcolour
}
171 \constfunc{wxColour\&
}{GetCellBackgroundColour
}{\param{int
}{ row
},
\param{int
}{ col
}}
173 \constfunc{wxColour\&
}{GetCellBackgroundColour
}{\void}
175 Gets the background colour for the cell at the given position, or the global background colour.
177 \pythonnote{In place of a single overloaded method name, wxPython
178 implements the following methods:
\par
179 \indented{2cm
}{\begin{twocollist
}
180 \twocolitem{{\bf GetCellBackgroundColour(row, col)
}}{}
181 \twocolitem{{\bf GetDefCellBackgroundColourt()
}}{}
185 \membersection{wxGrid::GetCells
}\label{wxgridgetcells
}
187 \constfunc{wxGridCell ***
}{GetCells
}{\void}
189 Returns the array of grid cell object associated with this wxGrid.
191 \membersection{wxGrid::GetCellTextColour
}\label{wxgridgetcelltextcolour
}
193 \constfunc{wxColour\&
}{GetCellTextColour
}{\param{int
}{ row
},
\param{int
}{ col
}}
195 \constfunc{wxColour\&
}{GetCellTextColour
}{\void}
197 Gets the text colour for the cell at the given position, or the global text colour.
199 \pythonnote{In place of a single overloaded method name, wxPython
200 implements the following methods:
\par
201 \indented{2cm
}{\begin{twocollist
}
202 \twocolitem{{\bf GetCellTextColour(row, col)
}}{}
203 \twocolitem{{\bf GetDefCellTextColour()
}}{}
207 \membersection{wxGrid::GetCellTextFont
}\label{wxgridgetcelltextfont
}
209 \constfunc{const wxFont\&
}{GetCellTextFont
}{\param{int
}{ row
},
\param{int
}{ col
}}
211 \constfunc{wxFont\&
}{GetCellTextFont
}{\void}
213 Gets the text font for the cell at the given position, or the global text font.
215 \pythonnote{In place of a single overloaded method name, wxPython
216 implements the following methods:
\par
217 \indented{2cm
}{\begin{twocollist
}
218 \twocolitem{{\bf GetCellTextFont(row, col)
}}{}
219 \twocolitem{{\bf GetDefCellTextFont()
}}{}
223 \membersection{wxGrid::GetCellValue
}\label{wxgridgetcellvalue
}
225 \constfunc{wxString\&
}{GetCellValue
}{\param{int
}{ row
},
\param{int
}{ col
}}
227 Returns the cell value at the given position.
229 \membersection{wxGrid::GetCols
}\label{wxgridgetcols
}
231 \constfunc{int
}{GetCols
}{\void}
233 Returns the number of columns in the grid.
235 \membersection{wxGrid::GetColumnWidth
}\label{wxgridcolumnwidth
}
237 \constfunc{int
}{GetColumnWidth
}{\param{int
}{ col
}}
239 Gets the width in pixels for column
{\it col
}.
241 \membersection{wxGrid::GetCurrentRect
}\label{wxgridgetcurrentrect
}
243 \constfunc{wxRectangle *
}{GetCurrentRect
}{\void}
245 Returns a pointer to the rectangle enclosing the currently selected cell.
246 Do not delete this pointer.
248 \membersection{wxGrid::GetCursorColumn
}\label{wxgridgetcursorcolumn
}
250 \constfunc{int
}{GetCursorColumn
}{\void}
252 Returns the column position of the currently selected cell.
254 \membersection{wxGrid::GetCursorRow
}\label{wxgridgetcursorrow
}
256 \constfunc{int
}{GetCursorRow
}{\void}
258 Returns the row position of the currently selected cell.
260 \membersection{wxGrid::GetEditable
}\label{wxgridgeteditable
}
262 \constfunc{bool
}{GetEditable
}{\void}
264 Returns TRUE if the grid cells can be edited.
266 \membersection{wxGrid::GetEditInPlace
}\label{wxgridgeteditinplace
}
268 \constfunc{bool
}{GetEditInPlace
}{\void}
270 Returns TRUE if editing in-place is enabled.
272 \membersection{wxGrid::GetHorizScrollBar
}\label{wxgridgethorizscrollbar
}
274 \constfunc{wxScrollBar *
}{GetHorizScrollBar
}{\void}
276 Returns a pointer to the horizontal scrollbar.
278 \membersection{wxGrid::GetLabelAlignment
}\label{wxgridgetlabelalignment
}
280 \constfunc{int
}{GetLabelAlignment
}{\param{int
}{ orientation
}}
282 Gets the row or column label alignment.
{\it orientation
} should
283 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
284 {\it alignment
} should be wxCENTRE, wxLEFT or wxRIGHT.
286 \membersection{wxGrid::GetLabelBackgroundColour
}\label{wxgridgetlabelbackgroundcolour
}
288 \constfunc{wxColour\&
}{GetLabelBackgroundColour
}{\void}
290 Gets a row and column label text colour.
292 \membersection{wxGrid::GetLabelSize
}\label{wxgridgetlabelsize
}
294 \constfunc{int
}{GetLabelSize
}{\param{int
}{ orientation
}}
296 Gets the row label height, or column label width, in pixels.
{\it orientation
} should
297 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
299 \membersection{wxGrid::GetLabelTextColour
}\label{wxgridgetlabeltextcolour
}
301 \constfunc{wxColour\&
}{GetLabelTextColour
}{\void}
303 Gets a row and column label text colour.
305 \membersection{wxGrid::GetLabelTextFont
}\label{wxgridgetlabeltextfont
}
307 \constfunc{wxFont\&
}{GetLabelTextFont
}{\void}
309 Gets the font to be used for the row and column labels.
311 \membersection{wxGrid::GetLabelValue
}\label{wxgridgetlabelvalue
}
313 \constfunc{wxString\&
}{GetLabelValue
}{\param{int
}{ orientation
},
\param{int
}{ pos
}}
315 Gets a row or column label value.
{\it orientation
} should
316 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
317 {\it pos
} is the label position.
319 \membersection{wxGrid::GetRowHeight
}\label{wxgridgetrowheight
}
321 \constfunc{int
}{GetRowHeight
}{\param{int
}{ row
}}
323 Gets the height in pixels for row
{\it row
}.
325 \membersection{wxGrid::GetRows
}\label{wxgridgetrows
}
327 \constfunc{int
}{GetRows
}{\void}
329 Returns the number of rows in the grid.
331 \membersection{wxGrid::GetScrollPosX
}\label{wxgridgetscrollposx
}
333 \constfunc{int
}{GetScrollPosX
}{\void}
335 Returns the column scroll position.
337 \membersection{wxGrid::GetScrollPosY
}\label{wxgridgetscrollposy
}
339 \constfunc{int
}{GetScrollPosY
}{\void}
341 Returns the row scroll position.
343 \membersection{wxGrid::GetTextItem
}\label{wxgridgettextitem
}
345 \constfunc{wxTextCtrl *
}{GetTextItem
}{\void}
347 Returns a pointer to the text item used for entering text into a cell.
349 \membersection{wxGrid::GetVertScrollBar
}\label{wxgridgetvertscrollbar
}
351 \constfunc{wxScrollBar *
}{GetVertScrollBar
}{\void}
353 Returns a pointer to the vertical scrollbar.
355 \membersection{wxGrid::InsertCols
}\label{wxgridinsertcols
}
357 \func{bool
}{InsertCols
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
359 Inserts
{\it n
} number of columns before position
{\it pos
}. If
{\it updateLabels
} is TRUE,
360 the function OnChangeLabels is called to give the application the opportunity to relabel.
362 \membersection{wxGrid::InsertRows
}\label{wxgridinsertrows
}
364 \func{bool
}{InsertRows
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
366 Inserts
{\it n
} number of rows before position
{\it pos
}. If
{\it updateLabels
} is TRUE,
367 the function OnChangeLabels is called to give the application the opportunity to relabel.
369 \membersection{wxGrid::OnActivate
}\label{wxgridonactivate
}
371 \func{void
}{OnActivate
}{\param{bool
}{ active
}}
373 Sets the text item to have the focus. Call this function when the wxGrid window should have the
374 focus, for example from wxFrame::OnActivate.
376 \membersection{wxGrid::OnChangeLabels
}\label{wxgridonchangelabels
}
378 \func{void
}{OnChangeLabels
}{\void}
380 Called when rows and columns are created or deleted, to allow the application an
381 opportunity to update the labels. By default, columns are labelled alphabetically,
382 and rows numerically.
384 \membersection{wxGrid::OnChangeSelectionLabel
}\label{wxgridonchangeselectionlabel
}
386 \func{void
}{OnChangeSelectionLabel
}{\void}
388 Called when a cell is selected, to allow the application an
389 opportunity to update the selection label (the label of the wxTextCtrl
390 used for entering cell text). By default, the cell column letter and row
391 number are concatenated to form the selection label.
393 \membersection{wxGrid::OnCreateCell
}\label{wxgridoncreatecell
}
395 \func{wxGridCell *
}{OnCreateCell
}{\void}
397 Override this virtual function if you want to replace the normal wxGridCell with a derived
400 \membersection{wxGrid::OnCellLeftClick
}\label{wxgridoncellleftclick
}
402 \func{void
}{OnLeftClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
404 Virtual function called when the left button is depressed within a cell, just after OnSelectCell is called.
406 \membersection{wxGrid::OnCellRightClick
}\label{wxgridoncellrightclick
}
408 \func{void
}{OnRightClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
410 Virtual function called when the right button is depressed within a cell, just after OnSelectCell is called.
412 \membersection{wxGrid::OnLabelLeftClick
}\label{wxgridonlabelleftclick
}
414 \func{void
}{OnLeftClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
416 Virtual function called when the left button is depressed within a
419 {\it row
} will be
{\it -
1} if the click is in the top labels.
421 {\it col
} will be
{\it -
1} if the click is in the left labels.
423 {\it row
} and
{\it col
} will be
{\it -
1} if the click is in the upper
426 \membersection{wxGrid::OnLabelRightClick
}\label{wxgridonlabelrightclick
}
428 \func{void
}{OnRightClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
430 Virtual function called when the right button is depressed within a label.
432 {\it row
} will be
{\it -
1} if the click is in the top labels.
434 {\it col
} will be
{\it -
1} if the click is in the left labels.
436 {\it row
} and
{\it col
} will be
{\it -
1} if the click is in the upper
439 \membersection{wxGrid::OnSelectCell
}\label{wxgridonselectcell
}
441 \func{void
}{OnSelectCell
}{\param{int
}{ row
},
\param{int
}{ col
}}
443 Virtual function called when the user left-clicks on a cell.
445 \membersection{wxGrid::OnSelectCellImplementation
}\label{wxgridonselectcellimplementation
}
447 \func{void
}{OnSelectCellImplementation
}{\param{wxDC *
}{dc
},
\param{int
}{ row
},
\param{int
}{ col
}}
449 Virtual function called when the user left-clicks on a cell. If you override this function,
450 call wxGrid::OnSelectCell to apply the default behaviour.
452 \membersection{wxGrid::SetCellAlignment
}\label{wxgridsetcellalignment
}
454 \func{void
}{SetCellAlignment
}{\param{int
}{ alignment
},
\param{int
}{ row
},
\param{int
}{ col
}}
456 \func{void
}{SetCellAlignment
}{\param{int
}{ alignment
}}
458 Sets the text alignment for the cell at the given position, or for the whole grid.
{\it alignment
} may be wxLEFT, wxRIGHT or wxCENTRE.
460 \pythonnote{In place of a single overloaded method name, wxPython
461 implements the following methods:
\par
462 \indented{2cm
}{\begin{twocollist
}
463 \twocolitem{{\bf SetCellAlignment(alignment, row, col)
}}{}
464 \twocolitem{{\bf SetDefCellAlignment(alignment)
}}{}
468 \membersection{wxGrid::SetCellBackgroundColour
}\label{wxgridsetcellbackgroundcolour
}
470 \func{void
}{SetCellBackgroundColour
}{\param{const wxColour\&
}{ colour
},
\param{int
}{ row
},
\param{int
}{ col
}}
472 \func{void
}{SetCellBackgroundColour
}{\param{const wxColour\&
}{ colour
}}
474 Sets the background colour for the cell at the given position, or for the whole grid.
476 \pythonnote{In place of a single overloaded method name, wxPython
477 implements the following methods:
\par
478 \indented{2cm
}{\begin{twocollist
}
479 \twocolitem{{\bf SetCellBackgroundColour(colour, row, col)
}}{}
480 \twocolitem{{\bf SetDefCellBackgroundColour(colour)
}}{}
484 \membersection{wxGrid::SetCellTextColour
}\label{wxgridsetcelltextcolour
}
486 \func{void
}{SetCellTextColour
}{\param{const wxColour\&
}{ colour
},
\param{int
}{ row
},
\param{int
}{ col
}}
488 \func{void
}{SetCellTextColour
}{\param{const wxColour\&
}{ colour
}}
490 Sets the text colour for the cell at the given position, or for the whole grid.
492 \pythonnote{In place of a single overloaded method name, wxPython
493 implements the following methods:
\par
494 \indented{2cm
}{\begin{twocollist
}
495 \twocolitem{{\bf SetCellTextColour(colour, row, col)
}}{}
496 \twocolitem{{\bf SetDefCellTextColour(colour)
}}{}
500 \membersection{wxGrid::SetCellTextFont
}\label{wxgridsetcelltextfont
}
502 \func{void
}{SetCellTextFont
}{\param{const wxFont\&
}{ font
},
\param{int
}{ row
},
\param{int
}{ col
}}
504 \func{void
}{SetCellTextFont
}{\param{const wxFont\&
}{ font
}}
506 Sets the text font for the cell at the given position, or for the whole grid.
508 \pythonnote{In place of a single overloaded method name, wxPython
509 implements the following methods:
\par
510 \indented{2cm
}{\begin{twocollist
}
511 \twocolitem{{\bf SetCellTextFont(font, row, col)
}}{}
512 \twocolitem{{\bf SetDefCellTextFont(font)
}}{}
516 \membersection{wxGrid::SetCellValue
}\label{wxgridsetcellvalue
}
518 \func{void
}{SetCellValue
}{\param{const wxString\&
}{ val
},
\param{int
}{ row
},
\param{int
}{ col
}}
520 Sets the cell value at the given position.
522 \membersection{wxGrid::SetColumnWidth
}\label{wxgridsetcolumnwidth
}
524 \func{void
}{SetColumnWidth
}{\param{int
}{ col
},
\param{int
}{ width
}}
526 Sets the width in pixels for column
{\it col
}.
528 \membersection{wxGrid::SetDividerPen
}\label{wxgridsetdividerpen
}
530 \func{void
}{SetDividerPen
}{\param{const wxPen\&
}{ pen
}}
532 Specifies the pen to be used for drawing the divisions between cells. The default
533 is a light grey. If NULL is specified, the divisions will not be drawn.
535 \membersection{wxGrid::SetEditable
}\label{wxgridseteditable
}
537 \func{void
}{SetEditable
}{\param{bool
}{ editable
}}
539 If
{\it editable
} is TRUE (the default), the grid cells will be editable by means of the
540 text edit control. If FALSE, the text edit control will be hidden and the user will not
541 be able to edit the cell contents.
543 \membersection{wxGrid::SetEditInPlace
}\label{wxgridseteditinplace
}
545 \func{void
}{SetEditInPlace
}{\param{bool
}{ edit = TRUE
}}
547 Enables (if
{\it edit
} is TRUE, default value) or disables in-place editing.
548 When it is enabled, the cells contents can be changed by typing text directly
551 \membersection{wxGrid::SetGridCursor
}\label{wxgridsetgridcursor
}
553 \func{void
}{SetGridCursor
}{\param{int
}{row
},
\param{int
}{ col
}}
555 Sets the position of the selected cell.
557 \membersection{wxGrid::SetLabelAlignment
}\label{wxgridsetlabelalignment
}
559 \func{void
}{SetLabelAlignment
}{\param{int
}{ orientation
},
\param{int
}{ alignment
}}
561 Sets the row or column label alignment.
{\it orientation
} should
562 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
563 {\it alignment
} should be wxCENTRE, wxLEFT or wxRIGHT.
565 \membersection{wxGrid::SetLabelBackgroundColour
}\label{wxgridsetlabelbackgroundcolour
}
567 \func{void
}{SetLabelBackgroundColour
}{\param{const wxColour\&
}{ value
}}
569 Sets a row or column label background colour.
571 \membersection{wxGrid::SetLabelSize
}\label{wxgridsetlabelsize
}
573 \func{void
}{SetLabelSize
}{\param{int
}{ orientation
},
\param{int
}{ size
}}
575 Sets the row label height, or column label width, in pixels.
{\it orientation
} should
576 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
578 If a dimension of zero is specified, the row or column labels will not be
581 \membersection{wxGrid::SetLabelTextColour
}\label{wxgridsetlabeltextcolour
}
583 \func{void
}{SetLabelTextColour
}{\param{const wxColour\&
}{ value
}}
585 Sets a row and column label text colour.
587 \membersection{wxGrid::SetLabelTextFont
}\label{wxgridsetlabeltextfont
}
589 \func{void
}{SetLabelTextFont
}{\param{const wxFont\&
}{ font
}}
591 Sets the font to be used for the row and column labels.
593 \membersection{wxGrid::SetLabelValue
}\label{wxgridsetlabelvalue
}
595 \func{void
}{SetLabelValue
}{\param{int
}{ orientation
},
\param{const wxString\&
}{ value
},
\param{int
}{ pos
}}
597 Sets a row or column label value.
{\it orientation
} should
598 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
599 {\it pos
} is the label position.
601 \membersection{wxGrid::SetRowHeight
}\label{wxgridsetrowheight
}
603 \func{void
}{SetRowHeight
}{\param{int
}{ row
},
\param{int
}{ height
}}
605 Sets the height in pixels for row
{\it row
}.
607 \membersection{wxGrid::UpdateDimensions
}\label{wxgridupdatedimensions
}
609 \func{void
}{UpdateDimensions
}{\void}
611 Call this function whenever a change has been made via the API that
612 might alter size characteristics. You may also need to follow it with
613 a call to AdjustScrollbars.