]>
Commit | Line | Data |
---|---|---|
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 | 8 | This class is responsible for providing and manipulating |
03817a5e | 9 | the 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 |
11 | associated with the cell attributes for individual cells, rows, columns, or |
12 | even for the entire grid. | |
13 | ||
03817a5e MB |
14 | \wxheading{Derived from} |
15 | ||
2eebb742 | 16 | wxGridCellWorker |
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 | 34 | Creates the actual edit control. |
03817a5e MB |
35 | |
36 | \membersection{wxGridCellEditor::SetSize}\label{wxgridcelleditorsetsize} | |
37 | ||
38 | \func{void}{SetSize}{\param{const wxRect\& }{rect}} | |
39 | ||
2eebb742 | 40 | Size 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 | ||
46 | Show or hide the edit control, use the specified attributes to set | |
2eebb742 | 47 | colours/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 | ||
53 | Draws the part of the cell not occupied by the control: the base class | |
2eebb742 | 54 | version 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 | ||
60 | Fetch the value from the table and prepare the edit control | |
2eebb742 | 61 | to 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 | ||
67 | Complete the editing of the current cell. Returns true if the value has | |
2eebb742 | 68 | changed. If necessary, the control may be destroyed. |
03817a5e MB |
69 | |
70 | \membersection{wxGridCellEditor::Reset}\label{wxgridcelleditorreset} | |
71 | ||
72 | \func{void}{Reset}{\void} | |
73 | ||
2eebb742 | 74 | Reset 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 | ||
80 | If the editor is enabled by pressing keys on the grid, | |
81 | this will be called to let the editor do something about | |
82 | that first key if desired. | |
83 | ||
03817a5e MB |
84 | \membersection{wxGridCellEditor::StartingClick}\label{wxgridcelleditorstartingclick} |
85 | ||
86 | \func{void}{StartingClick}{\void} | |
87 | ||
2eebb742 JS |
88 | If the editor is enabled by clicking on the cell, this method will be |
89 | called. | |
03817a5e MB |
90 | |
91 | \membersection{wxGridCellEditor::HandleReturn}\label{wxgridcelleditorhandlereturn} | |
92 | ||
93 | \func{void}{HandleReturn}{\param{wxKeyEvent\& }{event}} | |
94 | ||
95 | Some types of controls on some platforms may need some help | |
96 | with the Return key. | |
97 | ||
03817a5e MB |
98 | \membersection{wxGridCellEditor::Destroy}\label{wxgridcelleditordestroy} |
99 | ||
100 | \func{void}{Destroy}{\void} | |
101 | ||
2eebb742 | 102 | Final cleanup. |
03817a5e MB |
103 | |
104 | \membersection{wxGridCellEditor::Clone}\label{wxgridcelleditorclone} | |
105 | ||
106 | \constfunc{wxGridCellEditor*}{Clone}{\void} | |
107 | ||
2eebb742 | 108 | Create 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 | 114 | The dtor is private because only DecRef() can delete us. |
03817a5e | 115 |