X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ed460c2e7802793d591c84f3cfdbff159c5549..dd3c394ae4e6f6a0041b69e036d4fdf0a085fe39:/docs/latex/wx/grid.tex?ds=sidebyside diff --git a/docs/latex/wx/grid.tex b/docs/latex/wx/grid.tex index 39e4a04a1b..fb5d809879 100644 --- a/docs/latex/wx/grid.tex +++ b/docs/latex/wx/grid.tex @@ -9,6 +9,10 @@ wxGrid is a class for displaying and editing tabular information. \helpref{wxEvtHandler}{wxevthandler}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Window styles} There are no specific window styles for this class. @@ -79,6 +83,16 @@ and widths, and/or default cell width and height. Call this function after creating the wxGrid object. +\pythonnote{Currently the \tt{cellValues} and \tt{widths} parameters +don't exisit in the wxPython version of this method. So in other +words, the definition of the wxPython version of this method looks like this: +\begin{verbatim} + CreateGrid(rows, cols, + defaultWidth = wxGRID_DEFAULT_CELL_WIDTH, + defaultHeight = wxGRID_DEFAULT_CELL_HEIGHT) +\end{verbatim} +} + \membersection{wxGrid::CurrentCellVisible}\label{wxgridcurrentcellvisible} \func{bool}{CurrentCellVisible}{\void} @@ -138,6 +152,14 @@ wxGenericGrid implementation only. Sets the text alignment for the cell at the given position, or the global alignment value. The return value is wxLEFT, wxRIGHT or wxCENTRE. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{GetCellAlignment(row, col)}}{} +\twocolitem{\bf{GetDefCellAlignment()}}{} +\end{twocollist}} +} + \membersection{wxGrid::GetCellBackgroundColour}\label{wxgridgetcellbackgroundcolour} \constfunc{wxColour\&}{GetCellBackgroundColour}{\param{int}{ row}, \param{int}{ col}} @@ -146,6 +168,14 @@ The return value is wxLEFT, wxRIGHT or wxCENTRE. Gets the background colour for the cell at the given position, or the global background colour. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{GetCellBackgroundColour(row, col)}}{} +\twocolitem{\bf{GetDefCellBackgroundColourt()}}{} +\end{twocollist}} +} + \membersection{wxGrid::GetCells}\label{wxgridgetcells} \constfunc{wxGridCell ***}{GetCells}{\void} @@ -160,6 +190,14 @@ Returns the array of grid cell object associated with this wxGrid. Gets the text colour for the cell at the given position, or the global text colour. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{GetCellTextColour(row, col)}}{} +\twocolitem{\bf{GetDefCellTextColour()}}{} +\end{twocollist}} +} + \membersection{wxGrid::GetCellTextFont}\label{wxgridgetcelltextfont} \constfunc{const wxFont\&}{GetCellTextFont}{\param{int}{ row}, \param{int}{ col}} @@ -168,6 +206,14 @@ Gets the text colour for the cell at the given position, or the global text colo Gets the text font for the cell at the given position, or the global text font. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{GetCellTextFont(row, col)}}{} +\twocolitem{\bf{GetDefCellTextFont()}}{} +\end{twocollist}} +} + \membersection{wxGrid::GetCellValue}\label{wxgridgetcellvalue} \constfunc{wxString\&}{GetCellValue}{\param{int}{ row}, \param{int}{ col}} @@ -356,7 +402,7 @@ Virtual function called when the right button is depressed within a cell, just a \func{void}{OnLeftClick}{\param{int}{ row}, \param{int}{ col}, \param{int}{ x}, \param{int}{ y}, \param{bool}{ control}, \param{bool}{ shift}} Virtual function called when the left button is depressed within a -label. +label. {\it row} will be {\it -1} if the click is in the top labels. @@ -399,6 +445,14 @@ call wxGrid::OnSelectCell to apply the default behaviour. Sets the text alignment for the cell at the given position, or for the whole grid. {\it alignment} may be wxLEFT, wxRIGHT or wxCENTRE. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{SetCellAlignment(alignment, row, col)}}{} +\twocolitem{\bf{SetDefCellAlignment(alignment)}}{} +\end{twocollist}} +} + \membersection{wxGrid::SetCellBackgroundColour}\label{wxgridsetcellbackgroundcolour} \func{void}{SetCellBackgroundColour}{\param{const wxColour\&}{ colour}, \param{int}{ row}, \param{int}{ col}} @@ -407,6 +461,14 @@ Sets the text alignment for the cell at the given position, or for the whole gri Sets the background colour for the cell at the given position, or for the whole grid. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{SetCellBackgroundColour(colour, row, col)}}{} +\twocolitem{\bf{SetDefCellBackgroundColour(colour)}}{} +\end{twocollist}} +} + \membersection{wxGrid::SetCellTextColour}\label{wxgridsetcelltextcolour} \func{void}{SetCellTextColour}{\param{const wxColour\&}{ colour}, \param{int}{ row}, \param{int}{ col}} @@ -415,6 +477,14 @@ Sets the background colour for the cell at the given position, or for the whole Sets the text colour for the cell at the given position, or for the whole grid. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{SetCellTextColour(colour, row, col)}}{} +\twocolitem{\bf{SetDefCellTextColour(colour)}}{} +\end{twocollist}} +} + \membersection{wxGrid::SetCellTextFont}\label{wxgridsetcelltextfont} \func{void}{SetCellTextFont}{\param{const wxFont\&}{ font}, \param{int}{ row}, \param{int}{ col}} @@ -423,6 +493,14 @@ Sets the text colour for the cell at the given position, or for the whole grid. Sets the text font for the cell at the given position, or for the whole grid. +\pythonnote{In place of a single overloaded method name, wxPython +implements the following methods:\par +\indented{2cm}{\begin{twocollist} +\twocolitem{\bf{SetCellTextFont(font, row, col)}}{} +\twocolitem{\bf{SetDefCellTextFont(font)}}{} +\end{twocollist}} +} + \membersection{wxGrid::SetCellValue}\label{wxgridsetcellvalue} \func{void}{SetCellValue}{\param{const wxString\&}{ val}, \param{int}{ row}, \param{int}{ col}}