1 \section{\class{wxEditableListBox
}}\label{wxeditablelistbox
}
3 An editable listbox is composite control that lets the
4 user easily enter, delete and reorder a list of strings.
6 \wxheading{Derived from
}
8 \helpref{wxPanel
}{wxpanel
}\\
9 \helpref{wxWindow
}{wxwindow
}\\
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Window styles
}
20 \begin{twocollist
}\itemsep=
0pt
21 \twocolitem{\windowstyle{wxEL
\_ALLOW\_NEW}}{Allows the user to enter new strings.
}
22 \twocolitem{\windowstyle{wxEL
\_ALLOW\_EDIT}}{Allows the user to edit existing strings.
}
23 \twocolitem{\windowstyle{wxEL
\_ALLOW\_DELETE}}{Allows the user to delete existing strings.
}
24 \twocolitem{\windowstyle{wxEL
\_NO\_REORDER}}{Does not allow the user to reorder the strings.
}
25 \twocolitem{\windowstyle{wxEL
\_DEFAULT\_STYLE}}{wxEL
\_ALLOW\_NEW|wxEL
\_ALLOW\_EDIT|wxEL
\_ALLOW\_DELETE}
28 See also
\helpref{window styles overview
}{windowstyles
}.
32 \helpref{wxListBox
}{wxlistbox
}
34 \latexignore{\rtfignore{\wxheading{Members
}}}
36 \membersection{wxEditableListBox::wxEditableListBox
}\label{wxeditablelistboxctor
}
38 \func{}{wxEditableListBox
}{\void}
42 \func{}{wxEditableListBox
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
43 \param{const wxString\&
}{ label
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\rtfsp
44 \param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
45 \param{long
}{ style = wxEL
\_DEFAULT\_STYLE},
\param{const wxString\&
}{name = ``editableListBox"
}}
47 Constructor, creating and showing a list box.
49 \wxheading{Parameters
}
51 \docparam{parent
}{Parent window. Must not be NULL.
}
53 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
55 \docparam{label
}{The text shown just before the list control.
}
57 \docparam{pos
}{Window position.
}
59 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then the window is sized
62 \docparam{style
}{Window style. See
\helpref{wxEditableListBox
}{wxeditablelistbox
}.
}
64 \docparam{name
}{Window name.
}
68 \helpref{wxEditableListBox::Create
}{wxeditablelistboxcreate
}
70 \membersection{wxEditableListBox::
\destruct{wxEditableListBox
}}\label{wxeditablelistboxdtor
}
72 \func{void
}{\destruct{wxEditableListBox
}}{\void}
74 Destructor, destroying the list box.
76 \membersection{wxEditableListBox::Create
}\label{wxeditablelistboxcreate
}
78 \func{bool
}{Create
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
79 \param{const wxString\&
}{ label
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\rtfsp
80 \param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
81 \param{long
}{ style = wxEL
\_DEFAULT\_STYLE},
\param{const wxString\&
}{name = ``editableListBox"
}}
83 Creates the editable listbox for two-step construction. See
\helpref{wxEditableListBox::wxEditableListBox
}{wxeditablelistboxctor
}\rtfsp
86 \membersection{wxEditableListBox::SetStrings
}\label{wxeditablelistboxsetstrings
}
88 \func{void
}{SetStrings
}{\param{const wxArrayString\&
}{ strings
}}
90 Replaces current contents with given strings.
92 \membersection{wxEditableListBox::GetStrings
}\label{wxeditablelistboxgetstrings
}
94 \constfunc{void
}{GetSelections
}{\param{wxArrayString\&
}{strings
}}
96 Returns in the given array the current contents of the control
97 (the array will be erased before control's contents are appended).