]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridedit.tex
added wxLongLong::ToString()
[wxWidgets.git] / docs / latex / wx / gridedit.tex
CommitLineData
03817a5e
MB
1%
2% automatically generated by HelpGen from
3% grid.h at 11/May/00 18:30:18
4%
5
03817a5e
MB
6\section{\class{wxGridCellEditor}}\label{wxgridcelleditor}
7
2eebb742 8This class is responsible for providing and manipulating
03817a5e 9the in-place edit controls for the grid. Instances of wxGridCellEditor
2eebb742 10(actually, instances of derived classes since it is an abstract class) can be
03817a5e
MB
11associated with the cell attributes for individual cells, rows, columns, or
12even for the entire grid.
13
03817a5e
MB
14\wxheading{Derived from}
15
2eebb742 16wxGridCellWorker
03817a5e
MB
17
18\wxheading{Data structures}
19
20\latexignore{\rtfignore{\wxheading{Members}}}
21
03817a5e
MB
22\membersection{wxGridCellEditor::wxGridCellEditor}\label{wxgridcelleditorwxgridcelleditor}
23
24\func{}{wxGridCellEditor}{\void}
25
03817a5e
MB
26\membersection{wxGridCellEditor::IsCreated}\label{wxgridcelleditoriscreated}
27
28\func{bool}{IsCreated}{\void}
29
03817a5e
MB
30\membersection{wxGridCellEditor::Create}\label{wxgridcelleditorcreate}
31
32\func{void}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{wxEvtHandler* }{evtHandler}}
33
2eebb742 34Creates the actual edit control.
03817a5e
MB
35
36\membersection{wxGridCellEditor::SetSize}\label{wxgridcelleditorsetsize}
37
38\func{void}{SetSize}{\param{const wxRect\& }{rect}}
39
2eebb742 40Size and position the edit control.
03817a5e
MB
41
42\membersection{wxGridCellEditor::Show}\label{wxgridcelleditorshow}
43
44\func{void}{Show}{\param{bool }{show}, \param{wxGridCellAttr* }{attr = NULL}}
45
46Show or hide the edit control, use the specified attributes to set
2eebb742 47colours/fonts for it.
03817a5e
MB
48
49\membersection{wxGridCellEditor::PaintBackground}\label{wxgridcelleditorpaintbackground}
50
51\func{void}{PaintBackground}{\param{const wxRect\& }{rectCell}, \param{wxGridCellAttr* }{attr}}
52
53Draws the part of the cell not occupied by the control: the base class
2eebb742 54version just fills it with background colour from the attribute.
03817a5e
MB
55
56\membersection{wxGridCellEditor::BeginEdit}\label{wxgridcelleditorbeginedit}
57
58\func{void}{BeginEdit}{\param{int }{row}, \param{int }{col}, \param{wxGrid* }{grid}}
59
60Fetch the value from the table and prepare the edit control
2eebb742 61to begin editing. Set the focus to the edit control.
03817a5e
MB
62
63\membersection{wxGridCellEditor::EndEdit}\label{wxgridcelleditorendedit}
64
65\func{bool}{EndEdit}{\param{int }{row}, \param{int }{col}, \param{wxGrid* }{grid}}
66
67Complete the editing of the current cell. Returns true if the value has
2eebb742 68changed. If necessary, the control may be destroyed.
03817a5e
MB
69
70\membersection{wxGridCellEditor::Reset}\label{wxgridcelleditorreset}
71
72\func{void}{Reset}{\void}
73
2eebb742 74Reset the value in the control back to its starting value.
03817a5e
MB
75
76\membersection{wxGridCellEditor::StartingKey}\label{wxgridcelleditorstartingkey}
77
78\func{void}{StartingKey}{\param{wxKeyEvent\& }{event}}
79
80If the editor is enabled by pressing keys on the grid,
81this will be called to let the editor do something about
82that first key if desired.
83
03817a5e
MB
84\membersection{wxGridCellEditor::StartingClick}\label{wxgridcelleditorstartingclick}
85
86\func{void}{StartingClick}{\void}
87
2eebb742
JS
88If the editor is enabled by clicking on the cell, this method will be
89called.
03817a5e
MB
90
91\membersection{wxGridCellEditor::HandleReturn}\label{wxgridcelleditorhandlereturn}
92
93\func{void}{HandleReturn}{\param{wxKeyEvent\& }{event}}
94
95Some types of controls on some platforms may need some help
96with the Return key.
97
03817a5e
MB
98\membersection{wxGridCellEditor::Destroy}\label{wxgridcelleditordestroy}
99
100\func{void}{Destroy}{\void}
101
2eebb742 102Final cleanup.
03817a5e
MB
103
104\membersection{wxGridCellEditor::Clone}\label{wxgridcelleditorclone}
105
106\constfunc{wxGridCellEditor*}{Clone}{\void}
107
2eebb742 108Create a new object which is the copy of this one.
03817a5e
MB
109
110\membersection{wxGridCellEditor::\destruct{wxGridCellEditor}}\label{wxgridcelleditordtor}
111
112\func{}{\destruct{wxGridCellEditor}}{\void}
113
2eebb742 114The dtor is private because only DecRef() can delete us.
03817a5e 115