2000-07-21 08:30:47 +00:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen from
|
|
|
|
% grid.h at 11/May/00 18:30:18
|
|
|
|
%
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\section{\class{wxGridCellBoolEditor}}\label{wxgridcellbooleditor}
|
|
|
|
|
|
|
|
The editor for boolean data.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
|
|
|
|
\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
|
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
|
|
|
|
\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
|
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/grid.h>
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellBoolEditor::wxGridCellBoolEditor}\label{wxgridcellbooleditorconstr}
|
|
|
|
|
|
|
|
\func{}{wxGridCellBoolEditor}{}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
|
|
|
|
2006-10-28 13:57:38 +00:00
|
|
|
\membersection{wxGridCellBoolEditor::IsTrueValue}\label{wxgridcellbooleditoristruevalue}
|
|
|
|
|
|
|
|
\func{static bool}{IsTrueValue}{\param{const wxString\& }{value}}
|
|
|
|
|
|
|
|
Returns \true if the given \arg{value} is equal to the string representation of
|
|
|
|
the truth value we currently use (see
|
|
|
|
\helpref{UseStringValues}{wxgridcellbooleditorusestringvalues}).
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellBoolEditor::UseStringValues}\label{wxgridcellbooleditorusestringvalues}
|
|
|
|
|
|
|
|
\func{static void}{UseStringValues}{\param{const wxString\& }{valueTrue = \_T("1")}, \param{const wxString\& }{valueFalse = \_T("")}}
|
|
|
|
|
|
|
|
This method allows to customize the values returned by GetValue() method for
|
|
|
|
the cell using this editor. By default, the default values of the arguments are
|
|
|
|
used, i.e. \texttt{"1"} is returned if the cell is checked and an empty string
|
|
|
|
otherwise, using this method allows to change this.
|
|
|
|
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\section{\class{wxGridCellChoiceEditor}}\label{wxgridcellchoiceeditor}
|
|
|
|
|
|
|
|
The editor for string data allowing to choose from a list of strings.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
|
|
|
|
\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
|
|
|
|
\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor}
|
|
|
|
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor}\label{wxgridcellchoiceeditorconstr}
|
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
\func{}{wxGridCellChoiceEditor}{\param{size\_t }{count = 0}, \param{const wxString }{choices[] = NULL}, \param{bool }{allowOthers = false}}
|
2002-01-14 16:40:44 +00:00
|
|
|
|
2004-05-04 07:17:27 +00:00
|
|
|
\func{}{wxGridCellChoiceEditor}{\param{const wxArrayString\& }{choices}, \param{bool }{allowOthers = false}}
|
2003-09-11 21:11:01 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\docparam{count}{Number of strings from which the user can choose.}
|
|
|
|
\docparam{choices}{An array of strings from which the user can choose.}
|
2003-01-18 00:16:34 +00:00
|
|
|
\docparam{allowOthers}{If allowOthers if true, the user can type a string not in choices array.}
|
2002-01-14 16:40:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellChoiceEditor::SetParameters}\label{wxgridcellchoiceeditorsetparameters}
|
|
|
|
|
|
|
|
\func{void}{SetParameters}{\param{const wxString\& }{params}}
|
|
|
|
|
|
|
|
Parameters string format is "item1[,item2[...,itemN]]"
|
|
|
|
|
2000-07-21 08:30:47 +00:00
|
|
|
\section{\class{wxGridCellEditor}}\label{wxgridcelleditor}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
This class is responsible for providing and manipulating
|
2000-07-21 08:30:47 +00:00
|
|
|
the in-place edit controls for the grid. Instances of wxGridCellEditor
|
2000-09-10 19:01:03 +00:00
|
|
|
(actually, instances of derived classes since it is an abstract class) can be
|
2000-07-21 08:30:47 +00:00
|
|
|
associated with the cell attributes for individual cells, rows, columns, or
|
|
|
|
even for the entire grid.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
wxGridCellWorker
|
2000-07-21 08:30:47 +00:00
|
|
|
|
2001-12-23 21:26:11 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
|
|
|
|
\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
|
|
|
|
\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
|
|
|
|
\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
|
2000-07-21 08:30:47 +00:00
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/grid.h>
|
|
|
|
|
2000-07-21 08:30:47 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::wxGridCellEditor}\label{wxgridcelleditorwxgridcelleditor}
|
|
|
|
|
|
|
|
\func{}{wxGridCellEditor}{\void}
|
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::IsCreated}\label{wxgridcelleditoriscreated}
|
|
|
|
|
|
|
|
\func{bool}{IsCreated}{\void}
|
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::Create}\label{wxgridcelleditorcreate}
|
|
|
|
|
|
|
|
\func{void}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{wxEvtHandler* }{evtHandler}}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Creates the actual edit control.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::SetSize}\label{wxgridcelleditorsetsize}
|
|
|
|
|
|
|
|
\func{void}{SetSize}{\param{const wxRect\& }{rect}}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Size and position the edit control.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::Show}\label{wxgridcelleditorshow}
|
|
|
|
|
|
|
|
\func{void}{Show}{\param{bool }{show}, \param{wxGridCellAttr* }{attr = NULL}}
|
|
|
|
|
|
|
|
Show or hide the edit control, use the specified attributes to set
|
2000-09-10 19:01:03 +00:00
|
|
|
colours/fonts for it.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::PaintBackground}\label{wxgridcelleditorpaintbackground}
|
|
|
|
|
|
|
|
\func{void}{PaintBackground}{\param{const wxRect\& }{rectCell}, \param{wxGridCellAttr* }{attr}}
|
|
|
|
|
|
|
|
Draws the part of the cell not occupied by the control: the base class
|
2000-09-10 19:01:03 +00:00
|
|
|
version just fills it with background colour from the attribute.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::BeginEdit}\label{wxgridcelleditorbeginedit}
|
|
|
|
|
|
|
|
\func{void}{BeginEdit}{\param{int }{row}, \param{int }{col}, \param{wxGrid* }{grid}}
|
|
|
|
|
|
|
|
Fetch the value from the table and prepare the edit control
|
2000-09-10 19:01:03 +00:00
|
|
|
to begin editing. Set the focus to the edit control.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::EndEdit}\label{wxgridcelleditorendedit}
|
|
|
|
|
|
|
|
\func{bool}{EndEdit}{\param{int }{row}, \param{int }{col}, \param{wxGrid* }{grid}}
|
|
|
|
|
|
|
|
Complete the editing of the current cell. Returns true if the value has
|
2000-09-10 19:01:03 +00:00
|
|
|
changed. If necessary, the control may be destroyed.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::Reset}\label{wxgridcelleditorreset}
|
|
|
|
|
|
|
|
\func{void}{Reset}{\void}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Reset the value in the control back to its starting value.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::StartingKey}\label{wxgridcelleditorstartingkey}
|
|
|
|
|
|
|
|
\func{void}{StartingKey}{\param{wxKeyEvent\& }{event}}
|
|
|
|
|
|
|
|
If the editor is enabled by pressing keys on the grid,
|
|
|
|
this will be called to let the editor do something about
|
|
|
|
that first key if desired.
|
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::StartingClick}\label{wxgridcelleditorstartingclick}
|
|
|
|
|
|
|
|
\func{void}{StartingClick}{\void}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
If the editor is enabled by clicking on the cell, this method will be
|
|
|
|
called.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::HandleReturn}\label{wxgridcelleditorhandlereturn}
|
|
|
|
|
|
|
|
\func{void}{HandleReturn}{\param{wxKeyEvent\& }{event}}
|
|
|
|
|
|
|
|
Some types of controls on some platforms may need some help
|
|
|
|
with the Return key.
|
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::Destroy}\label{wxgridcelleditordestroy}
|
|
|
|
|
|
|
|
\func{void}{Destroy}{\void}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Final cleanup.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::Clone}\label{wxgridcelleditorclone}
|
|
|
|
|
|
|
|
\constfunc{wxGridCellEditor*}{Clone}{\void}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
Create a new object which is the copy of this one.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellEditor::\destruct{wxGridCellEditor}}\label{wxgridcelleditordtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxGridCellEditor}}{\void}
|
|
|
|
|
2000-09-10 19:01:03 +00:00
|
|
|
The dtor is private because only DecRef() can delete us.
|
2000-07-21 08:30:47 +00:00
|
|
|
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\section{\class{wxGridCellFloatEditor}}\label{wxgridcellfloateditor}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
The editor for floating point numbers data.
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor}\\
|
2001-12-23 21:26:11 +00:00
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
|
2002-01-14 16:40:44 +00:00
|
|
|
\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
|
2001-12-23 21:26:11 +00:00
|
|
|
\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
|
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\wxheading{Include files}
|
2002-01-14 16:40:44 +00:00
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
<wx/grid.h>
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\membersection{wxGridCellFloatEditor::wxGridCellFloatEditor}\label{wxgridcellfloateditorconstr}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\func{}{wxGridCellFloatEditor}{\param{int }{width = -1}, \param{int }{precision = -1}}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\docparam{width}{Minimum number of characters to be shown.}
|
|
|
|
\docparam{precision}{Number of digits after the decimal dot.}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellFloatEditor::SetParameters}\label{wxgridcellfloateditorsetparameters}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
\func{void}{SetParameters}{\param{const wxString\& }{params}}
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
Parameters string format is "width,precision"
|
|
|
|
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
\section{\class{wxGridCellNumberEditor}}\label{wxgridcellnumbereditor}
|
|
|
|
|
|
|
|
The editor for numeric integer data.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor}\\
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
|
|
|
|
\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
|
|
|
|
\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
|
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\wxheading{Include files}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
<wx/grid.h>
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
\membersection{wxGridCellNumberEditor::wxGridCellNumberEditor}\label{wxgridcellnumbereditorconstr}
|
|
|
|
|
|
|
|
\func{}{wxGridCellNumberEditor}{\param{int }{min = -1}, \param{int }{max = -1}}
|
|
|
|
|
|
|
|
Allows to specify the range for acceptable data;
|
|
|
|
if min == max == -1, no range checking is done
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellNumberEditor::GetString}\label{wxgridcellnumbereditorgetstring}
|
|
|
|
|
|
|
|
\constfunc{wxString}{GetString}{\void}
|
|
|
|
|
|
|
|
String representation of the value.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellNumberEditor::HasRange}\label{wxgridcellnumbereditorhasrange}
|
|
|
|
|
|
|
|
\constfunc{bool}{HasRange}{\void}
|
|
|
|
|
|
|
|
If the return value is true, the editor uses a wxSpinCtrl to get user input,
|
|
|
|
otherwise it uses a wxTextCtrl.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxGridCellNumberEditor::SetParameters}\label{wxgridcellnumbereditorsetparameters}
|
|
|
|
|
|
|
|
\func{void}{SetParameters}{\param{const wxString\& }{params}}
|
|
|
|
|
|
|
|
Parameters string format is "min,max".
|
|
|
|
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\section{\class{wxGridCellTextEditor}}\label{wxgridcelltexteditor}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
The editor for string/text data.
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
|
|
|
|
\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
|
2002-01-14 16:40:44 +00:00
|
|
|
\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
|
2001-12-23 21:26:11 +00:00
|
|
|
\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
|
|
|
|
\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
|
|
|
|
|
2005-02-20 17:06:25 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/grid.h>
|
|
|
|
|
2001-12-23 21:26:11 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\membersection{wxGridCellTextEditor::wxGridCellTextEditor}\label{wxgridcelltexteditorconstr}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\func{}{wxGridCellTextEditor}{\void}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
\membersection{wxGridCellTextEditor::SetParameters}\label{wxgridcelltexteditorsetparameters}
|
2001-12-23 21:26:11 +00:00
|
|
|
|
|
|
|
\func{void}{SetParameters}{\param{const wxString\& }{params}}
|
|
|
|
|
2002-01-14 16:40:44 +00:00
|
|
|
The parameters string format is "n" where n is a number representing the maximum width.
|
|
|
|
|
2001-12-23 21:26:11 +00:00
|
|
|
|