1998-09-06 14:43:36 +00:00
|
|
|
\section{\class{wxCheckListBox}}\label{wxchecklistbox}
|
|
|
|
|
|
|
|
A checklistbox is like a listbox, but allows items to be checked or unchecked.
|
|
|
|
|
1999-01-09 15:53:52 +00:00
|
|
|
This class is currently implemented under Windows and GTK. When using this
|
|
|
|
class under Windows wxWindows must be compiled with USE\_OWNER\_DRAWN set to 1.
|
1998-09-06 14:43:36 +00:00
|
|
|
|
|
|
|
Only the new functions for this class are documented; see also \helpref{wxListBox}{wxlistbox}.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxListBox}{wxlistbox}\\
|
|
|
|
\helpref{wxControl}{wxcontrol}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
|
|
|
\wxheading{Window styles}
|
|
|
|
|
|
|
|
See \helpref{wxListBox}{wxlistbox}.
|
|
|
|
|
|
|
|
\wxheading{Event handling}
|
|
|
|
|
|
|
|
See \helpref{wxListBox}{wxlistbox}.
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxListBox}{wxlistbox}, \helpref{wxChoice}{wxchoice}, \helpref{wxComboBox}{wxcombobox}, \helpref{wxListCtrl}{wxlistctrl},
|
|
|
|
\rtfsp\helpref{wxCommandEvent}{wxcommandevent}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxCheckListBox::wxCheckListBox}\label{wxchecklistboxconstr}
|
|
|
|
|
|
|
|
\func{}{wxCheckListBox}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
|
|
|
\func{}{wxCheckListBox}{\param{wxWindow*}{ parent}, \param{wxWindowID}{ id},\rtfsp
|
|
|
|
\param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
|
|
|
|
\param{int}{ n}, \param{const wxString }{choices[] = NULL},\rtfsp
|
|
|
|
\param{long}{ style = 0}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = ``listBox"}}
|
|
|
|
|
|
|
|
Constructor, creating and showing a list box.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{parent}{Parent window. Must not be NULL.}
|
|
|
|
|
|
|
|
\docparam{id}{Window identifier. A value of -1 indicates a default value.}
|
|
|
|
|
|
|
|
\docparam{pos}{Window position.}
|
|
|
|
|
|
|
|
\docparam{size}{Window size. If the default size (-1, -1) is specified then the window is sized
|
|
|
|
appropriately.}
|
|
|
|
|
|
|
|
\docparam{n}{Number of strings with which to initialise the control.}
|
|
|
|
|
|
|
|
\docparam{choices}{An array of strings with which to initialise the control.}
|
|
|
|
|
|
|
|
\docparam{style}{Window style. See \helpref{wxCheckListBox}{wxchecklistbox}.}
|
|
|
|
|
|
|
|
\docparam{validator}{Window validator.}
|
|
|
|
|
|
|
|
\docparam{name}{Window name.}
|
|
|
|
|
|
|
|
\membersection{wxCheckListBox::\destruct{wxCheckListBox}}
|
|
|
|
|
|
|
|
\func{void}{\destruct{wxCheckListBox}}{\void}
|
|
|
|
|
|
|
|
Destructor, destroying the list box.
|
|
|
|
|
|
|
|
\membersection{wxCheckListBox::Check}\label{wxchecklistboxcheck}
|
|
|
|
|
|
|
|
\func{void}{Check}{\param{int }{item}, \param{bool}{ check = TRUE}}
|
|
|
|
|
|
|
|
Checks the given item.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{item}{Index of item to check.}
|
|
|
|
|
|
|
|
\docparam{check}{TRUE if the item is to be checked, FALSE otherwise.}
|
|
|
|
|
|
|
|
\membersection{wxCheckListBox::IsChecked}\label{wxchecklistboxischecked}
|
|
|
|
|
|
|
|
\constfunc{bool}{IsChecked}{\param{int}{ item}}
|
|
|
|
|
|
|
|
Returns TRUE if the given item is checked, FALSE otherwise.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{item}{Index of item whose check status is to be returned.}
|
|
|
|
|
|
|
|
|