2 % automatically generated by HelpGen from
3 % grid.h at 11/May/00 18:30:18
7 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
11 wxGridCellEditor: This class is responsible for providing and manipulating
12 the in-place edit controls for the grid. Instances of wxGridCellEditor
13 (actually, instances of derived classes since it is an ABC) can be
14 associated with the cell attributes for individual cells, rows, columns, or
15 even for the entire grid.
18 \wxheading{Derived from
}
20 \helpref{wxGridCellWorker
}{wxgridcellworker
}
22 \wxheading{Data structures
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
29 \func{}{wxGridCellEditor
}{\void}
32 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
34 \func{bool
}{IsCreated
}{\void}
37 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
39 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
41 Creates the actual edit control
44 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
46 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
48 Size and position the edit control
51 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
53 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
55 Show or hide the edit control, use the specified attributes to set
59 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
61 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
63 Draws the part of the cell not occupied by the control: the base class
64 version just fills it with background colour from the attribute
67 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
69 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
71 Fetch the value from the table and prepare the edit control
72 to begin editing. Set the focus to the edit control.
75 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
77 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
79 Complete the editing of the current cell. Returns true if the value has
80 changed. If necessary, the control may be destroyed.
83 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
85 \func{void
}{Reset
}{\void}
87 Reset the value in the control back to its starting value
90 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
92 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
94 If the editor is enabled by pressing keys on the grid,
95 this will be called to let the editor do something about
96 that first key if desired.
99 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
101 \func{void
}{StartingClick
}{\void}
103 if the editor is enabled by clicking on the cell, this method will be
107 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
109 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
111 Some types of controls on some platforms may need some help
115 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
117 \func{void
}{Destroy
}{\void}
122 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
124 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
126 create a new object which is the copy of this one
129 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
131 \func{}{\destruct{wxGridCellEditor
}}{\void}
133 the dtor is private because only DecRef() can delete us