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
}
19 \helpref{wxAdv
}{librarieslist
}
21 \wxheading{Window styles
}
24 \begin{twocollist
}\itemsep=
0pt
25 \twocolitem{\windowstyle{wxEL
\_ALLOW\_NEW}}{Allows the user to enter new strings.
}
26 \twocolitem{\windowstyle{wxEL
\_ALLOW\_EDIT}}{Allows the user to edit existing strings.
}
27 \twocolitem{\windowstyle{wxEL
\_ALLOW\_DELETE}}{Allows the user to delete existing strings.
}
28 \twocolitem{\windowstyle{wxEL
\_NO\_REORDER}}{Does not allow the user to reorder the strings.
}
29 \twocolitem{\windowstyle{wxEL
\_DEFAULT\_STYLE}}{wxEL
\_ALLOW\_NEW|wxEL
\_ALLOW\_EDIT|wxEL
\_ALLOW\_DELETE}
32 See also
\helpref{window styles overview
}{windowstyles
}.
36 \helpref{wxListBox
}{wxlistbox
}
38 \latexignore{\rtfignore{\wxheading{Members
}}}
40 \membersection{wxEditableListBox::wxEditableListBox
}\label{wxeditablelistboxctor
}
42 \func{}{wxEditableListBox
}{\void}
46 \func{}{wxEditableListBox
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
47 \param{const wxString\&
}{ label
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\rtfsp
48 \param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
49 \param{long
}{ style = wxEL
\_DEFAULT\_STYLE},
\param{const wxString\&
}{name = ``editableListBox"
}}
51 Constructor, creating and showing a list box.
53 \wxheading{Parameters
}
55 \docparam{parent
}{Parent window. Must not be NULL.
}
57 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
59 \docparam{label
}{The text shown just before the list control.
}
61 \docparam{pos
}{Window position.
}
63 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then the window is sized
66 \docparam{style
}{Window style. See
\helpref{wxEditableListBox
}{wxeditablelistbox
}.
}
68 \docparam{name
}{Window name.
}
72 \helpref{wxEditableListBox::Create
}{wxeditablelistboxcreate
}
74 \membersection{wxEditableListBox::
\destruct{wxEditableListBox
}}\label{wxeditablelistboxdtor
}
76 \func{void
}{\destruct{wxEditableListBox
}}{\void}
78 Destructor, destroying the list box.
80 \membersection{wxEditableListBox::Create
}\label{wxeditablelistboxcreate
}
82 \func{bool
}{Create
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
83 \param{const wxString\&
}{ label
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\rtfsp
84 \param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
85 \param{long
}{ style = wxEL
\_DEFAULT\_STYLE},
\param{const wxString\&
}{name = ``editableListBox"
}}
87 Creates the editable listbox for two-step construction. See
\helpref{wxEditableListBox::wxEditableListBox
}{wxeditablelistboxctor
}\rtfsp
90 \membersection{wxEditableListBox::SetStrings
}\label{wxeditablelistboxsetstrings
}
92 \func{void
}{SetStrings
}{\param{const wxArrayString\&
}{ strings
}}
94 Replaces current contents with given strings.
96 \membersection{wxEditableListBox::GetStrings
}\label{wxeditablelistboxgetstrings
}
98 \constfunc{void
}{GetSelections
}{\param{wxArrayString\&
}{strings
}}
100 Returns in the given array the current contents of the control
101 (the array will be erased before control's contents are appended).