1 \section{\class{wxGrid
}}\label{wxgrid
}
3 wxGrid is a class for displaying and editing tabular information.
5 \wxheading{Derived from
}
7 \helpref{wxPanel
}{wxpanel
}\\
8 \helpref{wxWindow
}{wxwindow
}\\
9 \helpref{wxEvtHandler
}{wxevthandler
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
16 \wxheading{Window styles
}
18 There are no specific window styles for this class, but you may use different
19 SetXXX() functions to change the controls behaviour (for example, to enable
22 See also
\helpref{window styles overview
}{windowstyles
}.
26 \helpref{wxGrid classes overview
}{gridoverview
}
28 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{wxGrid::wxGrid
}\label{wxgridconstr
}
32 \func{void
}{wxGrid
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\param{const wxPoint\&
}{ pos
},
33 \rtfsp\param{const wxSize\&
}{ size
},
\param{long
}{ style=
0},
\param{const wxString\&
}{name="grid"
}}
35 Constructor. Before using a wxGrid object, you must call CreateGrid to set up the required rows and columns.
37 \membersection{wxGrid::AdjustScrollbars
}\label{wxgridadjustscrollbars
}
39 \func{void
}{AdjustScrollbars
}{\void}
41 Call this function whenever a change has been made via the API that might alter the scrollbar characteristics:
42 particularly when adding or deleting rows, or changing row or column dimensions. For example,
43 removing rows might make it unnecessary to show the vertical scrollbar.
45 \membersection{wxGrid::AppendCols
}\label{wxgridappendcols
}
47 \func{bool
}{AppendCols
}{\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
49 Appends
{\it n
} columns to the grid. If
{\it updateLabels
} is TRUE,
50 the function OnChangeLabels is called to give the application the opportunity to relabel.
52 \membersection{wxGrid::AppendRows
}\label{wxgridappendrows
}
54 \func{bool
}{AppendRows
}{\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
56 Appends
{\it n
} rows to the grid. If
{\it updateLabels
} is TRUE,
57 the function OnChangeLabels is called to give the application the opportunity to relabel.
59 \membersection{wxGrid::BeginBatch
}\label{wxgridbeginbatch
}
61 \func{void
}{BeginBatch
}{\void}
63 Start a BeginBatch/EndBatch pair between which, calls to SetCellValue or
64 SetCellBitmap will not cause a refresh. This allows you to speed up some operations
65 (for example, setting several hundred cell values). You can nest, but not overlap,
68 See also
\helpref{wxGrid::EndBatch
}{wxgridendbatch
},
\helpref{wxGrid::GetBatchCount
}{wxgridgetbatchcount
}.
70 \membersection{wxGrid::CellHitTest
}\label{wxgridcellhittest
}
72 \func{bool
}{CellHitTest
}{\param{int
}{ x
},
\param{int
}{ y
},
\param{int *
}{row
},
\param{int *
}{col
}}
74 Returns TRUE if the x, y panel position coincides with a cell. If so,
{\it row
} and
{\it col
} are
77 \membersection{wxGrid::CreateGrid
}\label{wxgridcreategrid
}
79 \func{bool
}{CreateGrid
}{\param{int
}{ rows
},
\param{int
}{ cols
},
\param{wxString **
}{cellValues=NULL
},
80 \param{short *
}{widths=NULL
},
\param{short
}{ defaultWidth=wxGRID
\_DEFAULT\_CELL\_WIDTH},
81 \param{short
}{ defaultHeight=wxGRID
\_DEFAULT\_CELL\_HEIGHT}}
83 Creates a grid
{\it rows
} high and
{\it cols
} wide. You can optionally specify an array of initial values
84 and widths, and/or default cell width and height.
86 Call this function after creating the wxGrid object.
88 \pythonnote{Currently the
{\tt cellValues
} and
{\tt widths
} parameters
89 don't exisit in the wxPython version of this method. So in other
90 words, the definition of the wxPython version of this method looks like this:
92 CreateGrid(rows, cols,
93 defaultWidth = wxGRID_DEFAULT_CELL_WIDTH,
94 defaultHeight = wxGRID_DEFAULT_CELL_HEIGHT)
98 \membersection{wxGrid::CurrentCellVisible
}\label{wxgridcurrentcellvisible
}
100 \func{bool
}{CurrentCellVisible
}{\void}
102 Returns TRUE if the currently selected cell is visible, FALSE otherwise.
104 \membersection{wxGrid::DeleteCols
}\label{wxgriddeletecols
}
106 \func{bool
}{DeleteCols
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
108 Deletes
{\it n
} columns from the grid at position
{\it pos
}. If
{\it updateLabels
} is TRUE,
109 the function OnChangeLabels is called to give the application the opportunity to relabel.
111 \membersection{wxGrid::DeleteRows
}\label{wxgriddeleterows
}
113 \func{bool
}{DeleteRows
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
115 Deletes
{\it n
} rows from the grid at position
{\it pos
}. If
{\it updateLabels
} is TRUE,
116 the function OnChangeLabels is called to give the application the opportunity to relabel.
118 \membersection{wxGrid::EndBatch
}\label{wxgridendbatch
}
120 \func{void
}{EndBatch
}{\void}
122 End a BeginBatch/EndBatch pair between which, calls to SetCellValue or
123 SetCellBitmap will not cause a refresh. This allows you to speed up some operations
124 (for example, setting several hundred cell values). You can nest, but not overlap,
127 See also
\helpref{wxGrid::BeginBatch
}{wxgridbeginbatch
},
\helpref{wxGrid::GetBatchCount
}{wxgridgetbatchcount
}.
129 \membersection{wxGrid::GetBatchCount
}\label{wxgridgetbatchcount
}
131 \constfunc{int
}{GetBatchCount
}{\void}
133 Return the level of batch nesting. This is initially zero, and will be incremented
134 every time BeginBatch is called, and decremented when EndBatch is called. When the
135 batch count is more zero, some functions (such as SetCellValue and SetCellBitmap) will
136 not refresh the cell.
138 See also
\helpref{wxGrid::BeginBatch
}{wxgridbeginbatch
},
\helpref{wxGrid::EndBatch
}{wxgridendbatch
}.
140 \membersection{wxGrid::GetCell
}\label{wxgridgetcell
}
142 \constfunc{wxGridCell *
}{GetCell
}{\param{int
}{ row
},
\param{int
}{ col
}}
144 Returns the grid cell object associated with this position.
146 wxGenericGrid implementation only.
148 \membersection{wxGrid::GetCellAlignment
}\label{wxgridgetcellalignment
}
150 \constfunc{int
}{GetCellAlignment
}{\param{int
}{ row
},
\param{int
}{ col
}}
152 \constfunc{int
}{GetCellAlignment
}{\void}
154 Sets the text alignment for the cell at the given position, or the global alignment value.
155 The return value is wxLEFT, wxRIGHT or wxCENTRE.
157 \pythonnote{In place of a single overloaded method name, wxPython
158 implements the following methods:
\par
159 \indented{2cm
}{\begin{twocollist
}
160 \twocolitem{{\bf GetCellAlignment(row, col)
}}{}
161 \twocolitem{{\bf GetDefCellAlignment()
}}{}
165 \membersection{wxGrid::GetCellBackgroundColour
}\label{wxgridgetcellbackgroundcolour
}
167 \constfunc{wxColour\&
}{GetCellBackgroundColour
}{\param{int
}{ row
},
\param{int
}{ col
}}
169 \constfunc{wxColour\&
}{GetCellBackgroundColour
}{\void}
171 Gets the background colour for the cell at the given position, or the global background colour.
173 \pythonnote{In place of a single overloaded method name, wxPython
174 implements the following methods:
\par
175 \indented{2cm
}{\begin{twocollist
}
176 \twocolitem{{\bf GetCellBackgroundColour(row, col)
}}{}
177 \twocolitem{{\bf GetDefCellBackgroundColourt()
}}{}
181 \membersection{wxGrid::GetCells
}\label{wxgridgetcells
}
183 \constfunc{wxGridCell ***
}{GetCells
}{\void}
185 Returns the array of grid cell object associated with this wxGrid.
187 \membersection{wxGrid::GetCellTextColour
}\label{wxgridgetcelltextcolour
}
189 \constfunc{wxColour\&
}{GetCellTextColour
}{\param{int
}{ row
},
\param{int
}{ col
}}
191 \constfunc{wxColour\&
}{GetCellTextColour
}{\void}
193 Gets the text colour for the cell at the given position, or the global text colour.
195 \pythonnote{In place of a single overloaded method name, wxPython
196 implements the following methods:
\par
197 \indented{2cm
}{\begin{twocollist
}
198 \twocolitem{{\bf GetCellTextColour(row, col)
}}{}
199 \twocolitem{{\bf GetDefCellTextColour()
}}{}
203 \membersection{wxGrid::GetCellTextFont
}\label{wxgridgetcelltextfont
}
205 \constfunc{const wxFont\&
}{GetCellTextFont
}{\param{int
}{ row
},
\param{int
}{ col
}}
207 \constfunc{wxFont\&
}{GetCellTextFont
}{\void}
209 Gets the text font for the cell at the given position, or the global text font.
211 \pythonnote{In place of a single overloaded method name, wxPython
212 implements the following methods:
\par
213 \indented{2cm
}{\begin{twocollist
}
214 \twocolitem{{\bf GetCellTextFont(row, col)
}}{}
215 \twocolitem{{\bf GetDefCellTextFont()
}}{}
219 \membersection{wxGrid::GetCellValue
}\label{wxgridgetcellvalue
}
221 \constfunc{wxString\&
}{GetCellValue
}{\param{int
}{ row
},
\param{int
}{ col
}}
223 Returns the cell value at the given position.
225 \membersection{wxGrid::GetCols
}\label{wxgridgetcols
}
227 \constfunc{int
}{GetCols
}{\void}
229 Returns the number of columns in the grid.
231 \membersection{wxGrid::GetColumnWidth
}\label{wxgridcolumnwidth
}
233 \constfunc{int
}{GetColumnWidth
}{\param{int
}{ col
}}
235 Gets the width in pixels for column
{\it col
}.
237 \membersection{wxGrid::GetCurrentRect
}\label{wxgridgetcurrentrect
}
239 \constfunc{wxRectangle *
}{GetCurrentRect
}{\void}
241 Returns a pointer to the rectangle enclosing the currently selected cell.
242 Do not delete this pointer.
244 \membersection{wxGrid::GetCursorColumn
}\label{wxgridgetcursorcolumn
}
246 \constfunc{int
}{GetCursorColumn
}{\void}
248 Returns the column position of the currently selected cell.
250 \membersection{wxGrid::GetCursorRow
}\label{wxgridgetcursorrow
}
252 \constfunc{int
}{GetCursorRow
}{\void}
254 Returns the row position of the currently selected cell.
256 \membersection{wxGrid::GetEditable
}\label{wxgridgeteditable
}
258 \constfunc{bool
}{GetEditable
}{\void}
260 Returns TRUE if the grid cells can be edited.
262 \membersection{wxGrid::GetEditInPlace
}\label{wxgridgeteditinplace
}
264 \constfunc{bool
}{GetEditInPlace
}{\void}
266 Returns TRUE if editing in-place is enabled.
268 \membersection{wxGrid::GetHorizScrollBar
}\label{wxgridgethorizscrollbar
}
270 \constfunc{wxScrollBar *
}{GetHorizScrollBar
}{\void}
272 Returns a pointer to the horizontal scrollbar.
274 \membersection{wxGrid::GetLabelAlignment
}\label{wxgridgetlabelalignment
}
276 \constfunc{int
}{GetLabelAlignment
}{\param{int
}{ orientation
}}
278 Gets the row or column label alignment.
{\it orientation
} should
279 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
280 {\it alignment
} should be wxCENTRE, wxLEFT or wxRIGHT.
282 \membersection{wxGrid::GetLabelBackgroundColour
}\label{wxgridgetlabelbackgroundcolour
}
284 \constfunc{wxColour\&
}{GetLabelBackgroundColour
}{\void}
286 Gets a row and column label text colour.
288 \membersection{wxGrid::GetLabelSize
}\label{wxgridgetlabelsize
}
290 \constfunc{int
}{GetLabelSize
}{\param{int
}{ orientation
}}
292 Gets the row label height, or column label width, in pixels.
{\it orientation
} should
293 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
295 \membersection{wxGrid::GetLabelTextColour
}\label{wxgridgetlabeltextcolour
}
297 \constfunc{wxColour\&
}{GetLabelTextColour
}{\void}
299 Gets a row and column label text colour.
301 \membersection{wxGrid::GetLabelTextFont
}\label{wxgridgetlabeltextfont
}
303 \constfunc{wxFont\&
}{GetLabelTextFont
}{\void}
305 Gets the font to be used for the row and column labels.
307 \membersection{wxGrid::GetLabelValue
}\label{wxgridgetlabelvalue
}
309 \constfunc{wxString\&
}{GetLabelValue
}{\param{int
}{ orientation
},
\param{int
}{ pos
}}
311 Gets a row or column label value.
{\it orientation
} should
312 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
313 {\it pos
} is the label position.
315 \membersection{wxGrid::GetRowHeight
}\label{wxgridgetrowheight
}
317 \constfunc{int
}{GetRowHeight
}{\param{int
}{ row
}}
319 Gets the height in pixels for row
{\it row
}.
321 \membersection{wxGrid::GetRows
}\label{wxgridgetrows
}
323 \constfunc{int
}{GetRows
}{\void}
325 Returns the number of rows in the grid.
327 \membersection{wxGrid::GetScrollPosX
}\label{wxgridgetscrollposx
}
329 \constfunc{int
}{GetScrollPosX
}{\void}
331 Returns the column scroll position.
333 \membersection{wxGrid::GetScrollPosY
}\label{wxgridgetscrollposy
}
335 \constfunc{int
}{GetScrollPosY
}{\void}
337 Returns the row scroll position.
339 \membersection{wxGrid::GetTextItem
}\label{wxgridgettextitem
}
341 \constfunc{wxText *
}{GetTextItem
}{\void}
343 Returns a pointer to the text item used for entering text into a cell.
345 \membersection{wxGrid::GetVertScrollBar
}\label{wxgridgetvertscrollbar
}
347 \constfunc{wxScrollBar *
}{GetVertScrollBar
}{\void}
349 Returns a pointer to the vertical scrollbar.
351 \membersection{wxGrid::InsertCols
}\label{wxgridinsertcols
}
353 \func{bool
}{InsertCols
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
355 Inserts
{\it n
} number of columns before position
{\it pos
}. If
{\it updateLabels
} is TRUE,
356 the function OnChangeLabels is called to give the application the opportunity to relabel.
358 \membersection{wxGrid::InsertRows
}\label{wxgridinsertrows
}
360 \func{bool
}{InsertRows
}{\param{int
}{ pos=
0},
\param{int
}{ n=
1},
\param{bool
}{ updateLabels=TRUE
}}
362 Inserts
{\it n
} number of rows before position
{\it pos
}. If
{\it updateLabels
} is TRUE,
363 the function OnChangeLabels is called to give the application the opportunity to relabel.
365 \membersection{wxGrid::OnActivate
}\label{wxgridonactivate
}
367 \func{void
}{OnActivate
}{\param{bool
}{ active
}}
369 Sets the text item to have the focus. Call this function when the wxGrid window should have the
370 focus, for example from wxFrame::OnActivate.
372 \membersection{wxGrid::OnChangeLabels
}\label{wxgridonchangelabels
}
374 \func{void
}{OnChangeLabels
}{\void}
376 Called when rows and columns are created or deleted, to allow the application an
377 opportunity to update the labels. By default, columns are labelled alphabetically,
378 and rows numerically.
380 \membersection{wxGrid::OnChangeSelectionLabel
}\label{wxgridonchangeselectionlabel
}
382 \func{void
}{OnChangeSelectionLabel
}{\void}
384 Called when a cell is selected, to allow the application an
385 opportunity to update the selection label (the label of the wxText item
386 used for entering cell text). By default, the cell column letter and row
387 number are concatenated to form the selection label.
389 \membersection{wxGrid::OnCreateCell
}\label{wxgridoncreatecell
}
391 \func{wxGridCell *
}{OnCreateCell
}{\void}
393 Override this virtual function if you want to replace the normal wxGridCell with a derived
396 \membersection{wxGrid::OnCellLeftClick
}\label{wxgridoncellleftclick
}
398 \func{void
}{OnLeftClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
400 Virtual function called when the left button is depressed within a cell, just after OnSelectCell is called.
402 \membersection{wxGrid::OnCellRightClick
}\label{wxgridoncellrightclick
}
404 \func{void
}{OnRightClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
406 Virtual function called when the right button is depressed within a cell, just after OnSelectCell is called.
408 \membersection{wxGrid::OnLabelLeftClick
}\label{wxgridonlabelleftclick
}
410 \func{void
}{OnLeftClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
412 Virtual function called when the left button is depressed within a
415 {\it row
} will be
{\it -
1} if the click is in the top labels.
417 {\it col
} will be
{\it -
1} if the click is in the left labels.
419 {\it row
} and
{\it col
} will be
{\it -
1} if the click is in the upper
422 \membersection{wxGrid::OnLabelRightClick
}\label{wxgridonlabelrightclick
}
424 \func{void
}{OnRightClick
}{\param{int
}{ row
},
\param{int
}{ col
},
\param{int
}{ x
},
\param{int
}{ y
},
\param{bool
}{ control
},
\param{bool
}{ shift
}}
426 Virtual function called when the right button is depressed within a label.
428 {\it row
} will be
{\it -
1} if the click is in the top labels.
430 {\it col
} will be
{\it -
1} if the click is in the left labels.
432 {\it row
} and
{\it col
} will be
{\it -
1} if the click is in the upper
435 \membersection{wxGrid::OnSelectCell
}\label{wxgridonselectcell
}
437 \func{void
}{OnSelectCell
}{\param{int
}{ row
},
\param{int
}{ col
}}
439 Virtual function called when the user left-clicks on a cell.
441 \membersection{wxGrid::OnSelectCellImplementation
}\label{wxgridonselectcellimplementation
}
443 \func{void
}{OnSelectCellImplementation
}{\param{wxDC *
}{dc
},
\param{int
}{ row
},
\param{int
}{ col
}}
445 Virtual function called when the user left-clicks on a cell. If you override this function,
446 call wxGrid::OnSelectCell to apply the default behaviour.
448 \membersection{wxGrid::SetCellAlignment
}\label{wxgridsetcellalignment
}
450 \func{void
}{SetCellAlignment
}{\param{int
}{ alignment
},
\param{int
}{ row
},
\param{int
}{ col
}}
452 \func{void
}{SetCellAlignment
}{\param{int
}{ alignment
}}
454 Sets the text alignment for the cell at the given position, or for the whole grid.
{\it alignment
} may be wxLEFT, wxRIGHT or wxCENTRE.
456 \pythonnote{In place of a single overloaded method name, wxPython
457 implements the following methods:
\par
458 \indented{2cm
}{\begin{twocollist
}
459 \twocolitem{{\bf SetCellAlignment(alignment, row, col)
}}{}
460 \twocolitem{{\bf SetDefCellAlignment(alignment)
}}{}
464 \membersection{wxGrid::SetCellBackgroundColour
}\label{wxgridsetcellbackgroundcolour
}
466 \func{void
}{SetCellBackgroundColour
}{\param{const wxColour\&
}{ colour
},
\param{int
}{ row
},
\param{int
}{ col
}}
468 \func{void
}{SetCellBackgroundColour
}{\param{const wxColour\&
}{ colour
}}
470 Sets the background colour for the cell at the given position, or for the whole grid.
472 \pythonnote{In place of a single overloaded method name, wxPython
473 implements the following methods:
\par
474 \indented{2cm
}{\begin{twocollist
}
475 \twocolitem{{\bf SetCellBackgroundColour(colour, row, col)
}}{}
476 \twocolitem{{\bf SetDefCellBackgroundColour(colour)
}}{}
480 \membersection{wxGrid::SetCellTextColour
}\label{wxgridsetcelltextcolour
}
482 \func{void
}{SetCellTextColour
}{\param{const wxColour\&
}{ colour
},
\param{int
}{ row
},
\param{int
}{ col
}}
484 \func{void
}{SetCellTextColour
}{\param{const wxColour\&
}{ colour
}}
486 Sets the text colour for the cell at the given position, or for the whole grid.
488 \pythonnote{In place of a single overloaded method name, wxPython
489 implements the following methods:
\par
490 \indented{2cm
}{\begin{twocollist
}
491 \twocolitem{{\bf SetCellTextColour(colour, row, col)
}}{}
492 \twocolitem{{\bf SetDefCellTextColour(colour)
}}{}
496 \membersection{wxGrid::SetCellTextFont
}\label{wxgridsetcelltextfont
}
498 \func{void
}{SetCellTextFont
}{\param{const wxFont\&
}{ font
},
\param{int
}{ row
},
\param{int
}{ col
}}
500 \func{void
}{SetCellTextFont
}{\param{const wxFont\&
}{ font
}}
502 Sets the text font for the cell at the given position, or for the whole grid.
504 \pythonnote{In place of a single overloaded method name, wxPython
505 implements the following methods:
\par
506 \indented{2cm
}{\begin{twocollist
}
507 \twocolitem{{\bf SetCellTextFont(font, row, col)
}}{}
508 \twocolitem{{\bf SetDefCellTextFont(font)
}}{}
512 \membersection{wxGrid::SetCellValue
}\label{wxgridsetcellvalue
}
514 \func{void
}{SetCellValue
}{\param{const wxString\&
}{ val
},
\param{int
}{ row
},
\param{int
}{ col
}}
516 Sets the cell value at the given position.
518 \membersection{wxGrid::SetColumnWidth
}\label{wxgridsetcolumnwidth
}
520 \func{void
}{SetColumnWidth
}{\param{int
}{ col
},
\param{int
}{ width
}}
522 Sets the width in pixels for column
{\it col
}.
524 \membersection{wxGrid::SetDividerPen
}\label{wxgridsetdividerpen
}
526 \func{void
}{SetDividerPen
}{\param{const wxPen\&
}{ pen
}}
528 Specifies the pen to be used for drawing the divisions between cells. The default
529 is a light grey. If NULL is specified, the divisions will not be drawn.
531 \membersection{wxGrid::SetEditable
}\label{wxgridseteditable
}
533 \func{void
}{SetEditable
}{\param{bool
}{ editable
}}
535 If
{\it editable
} is TRUE (the default), the grid cells will be editable by means of the
536 text edit control. If FALSE, the text edit control will be hidden and the user will not
537 be able to edit the cell contents.
539 \membersection{wxGrid::SetEditInPlace
}\label{wxgridseteditinplace
}
541 \func{void
}{SetEditInPlace
}{\param{bool
}{ edit = TRUE
}}
543 Enables (if
{\it edit
} is TRUE, default value) or disables in-place editing.
544 When it is enabled, the cells contents can be changed by typing text directly
547 \membersection{wxGrid::SetGridCursor
}\label{wxgridsetgridcursor
}
549 \func{void
}{SetGridCursor
}{\param{int
}{row
},
\param{int
}{ col
}}
551 Sets the position of the selected cell.
553 \membersection{wxGrid::SetLabelAlignment
}\label{wxgridsetlabelalignment
}
555 \func{void
}{SetLabelAlignment
}{\param{int
}{ orientation
},
\param{int
}{ alignment
}}
557 Sets the row or column label alignment.
{\it orientation
} should
558 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
559 {\it alignment
} should be wxCENTRE, wxLEFT or wxRIGHT.
561 \membersection{wxGrid::SetLabelBackgroundColour
}\label{wxgridsetlabelbackgroundcolour
}
563 \func{void
}{SetLabelBackgroundColour
}{\param{const wxColour\&
}{ value
}}
565 Sets a row or column label background colour.
567 \membersection{wxGrid::SetLabelSize
}\label{wxgridsetlabelsize
}
569 \func{void
}{SetLabelSize
}{\param{int
}{ orientation
},
\param{int
}{ size
}}
571 Sets the row label height, or column label width, in pixels.
{\it orientation
} should
572 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
574 If a dimension of zero is specified, the row or column labels will not be
577 \membersection{wxGrid::SetLabelTextColour
}\label{wxgridsetlabeltextcolour
}
579 \func{void
}{SetLabelTextColour
}{\param{const wxColour\&
}{ value
}}
581 Sets a row and column label text colour.
583 \membersection{wxGrid::SetLabelTextFont
}\label{wxgridsetlabeltextfont
}
585 \func{void
}{SetLabelTextFont
}{\param{const wxFont\&
}{ font
}}
587 Sets the font to be used for the row and column labels.
589 \membersection{wxGrid::SetLabelValue
}\label{wxgridsetlabelvalue
}
591 \func{void
}{SetLabelValue
}{\param{int
}{ orientation
},
\param{const wxString\&
}{ value
},
\param{int
}{ pos
}}
593 Sets a row or column label value.
{\it orientation
} should
594 be wxHORIZONTAL to specify column label, wxVERTICAL to specify row label.
\rtfsp
595 {\it pos
} is the label position.
597 \membersection{wxGrid::SetRowHeight
}\label{wxgridsetrowheight
}
599 \func{void
}{SetRowHeight
}{\param{int
}{ row
},
\param{int
}{ height
}}
601 Sets the height in pixels for row
{\it row
}.
603 \membersection{wxGrid::UpdateDimensions
}\label{wxgridupdatedimensions
}
605 \func{void
}{UpdateDimensions
}{\void}
607 Call this function whenever a change has been made via the API that
608 might alter size characteristics. You may also need to follow it with
609 a call to AdjustScrollbars.