1 \section{\class{wxCheckListBox
}}\label{wxchecklistbox
}
3 A checklistbox is like a listbox, but allows items to be checked or unchecked.
5 This class is currently implemented under Windows and GTK. When using this
6 class under Windows wxWindows must be compiled with USE
\_OWNER\_DRAWN set to
1.
8 Only the new functions for this class are documented; see also
\helpref{wxListBox
}{wxlistbox
}.
10 \wxheading{Derived from
}
12 \helpref{wxListBox
}{wxlistbox
}\\
13 \helpref{wxControl
}{wxcontrol
}\\
14 \helpref{wxWindow
}{wxwindow
}\\
15 \helpref{wxEvtHandler
}{wxevthandler
}\\
16 \helpref{wxObject
}{wxobject
}
18 \wxheading{Include files
}
22 \wxheading{Window styles
}
24 See
\helpref{wxListBox
}{wxlistbox
}.
26 \wxheading{Event handling
}
28 See
\helpref{wxListBox
}{wxlistbox
}.
32 \helpref{wxListBox
}{wxlistbox
},
\helpref{wxChoice
}{wxchoice
},
\helpref{wxComboBox
}{wxcombobox
},
\helpref{wxListCtrl
}{wxlistctrl
},
33 \rtfsp\helpref{wxCommandEvent
}{wxcommandevent
}
35 \latexignore{\rtfignore{\wxheading{Members
}}}
37 \membersection{wxCheckListBox::wxCheckListBox
}\label{wxchecklistboxconstr
}
39 \func{}{wxCheckListBox
}{\void}
43 \func{}{wxCheckListBox
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
44 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
45 \param{int
}{ n
},
\param{const wxString
}{choices
[] = NULL
},
\rtfsp
46 \param{long
}{ style =
0},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``listBox"
}}
48 Constructor, creating and showing a list box.
50 \wxheading{Parameters
}
52 \docparam{parent
}{Parent window. Must not be NULL.
}
54 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
56 \docparam{pos
}{Window position.
}
58 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then the window is sized
61 \docparam{n
}{Number of strings with which to initialise the control.
}
63 \docparam{choices
}{An array of strings with which to initialise the control.
}
65 \docparam{style
}{Window style. See
\helpref{wxCheckListBox
}{wxchecklistbox
}.
}
67 \docparam{validator
}{Window validator.
}
69 \docparam{name
}{Window name.
}
71 \pythonnote{The wxCheckListBox constructor in wxPython reduces the
\tt{n
}
72 and
\tt{choices
} arguments are to a single argument, which is
75 \membersection{wxCheckListBox::
\destruct{wxCheckListBox
}}
77 \func{void
}{\destruct{wxCheckListBox
}}{\void}
79 Destructor, destroying the list box.
81 \membersection{wxCheckListBox::Check
}\label{wxchecklistboxcheck
}
83 \func{void
}{Check
}{\param{int
}{item
},
\param{bool
}{ check = TRUE
}}
85 Checks the given item.
87 \wxheading{Parameters
}
89 \docparam{item
}{Index of item to check.
}
91 \docparam{check
}{TRUE if the item is to be checked, FALSE otherwise.
}
93 \membersection{wxCheckListBox::IsChecked
}\label{wxchecklistboxischecked
}
95 \constfunc{bool
}{IsChecked
}{\param{int
}{ item
}}
97 Returns TRUE if the given item is checked, FALSE otherwise.
99 \wxheading{Parameters
}
101 \docparam{item
}{Index of item whose check status is to be returned.
}