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{Window styles
}
20 See
\helpref{wxListBox
}{wxlistbox
}.
22 \wxheading{Event handling
}
24 See
\helpref{wxListBox
}{wxlistbox
}.
28 \helpref{wxListBox
}{wxlistbox
},
\helpref{wxChoice
}{wxchoice
},
\helpref{wxComboBox
}{wxcombobox
},
\helpref{wxListCtrl
}{wxlistctrl
},
29 \rtfsp\helpref{wxCommandEvent
}{wxcommandevent
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxCheckListBox::wxCheckListBox
}\label{wxchecklistboxconstr
}
35 \func{}{wxCheckListBox
}{\void}
39 \func{}{wxCheckListBox
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{ id
},
\rtfsp
40 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{ size = wxDefaultSize
},
\rtfsp
41 \param{int
}{ n
},
\param{const wxString
}{choices
[] = NULL
},
\rtfsp
42 \param{long
}{ style =
0},
\param{const wxValidator\&
}{validator = wxDefaultValidator
},
\param{const wxString\&
}{name = ``listBox"
}}
44 Constructor, creating and showing a list box.
46 \wxheading{Parameters
}
48 \docparam{parent
}{Parent window. Must not be NULL.
}
50 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
52 \docparam{pos
}{Window position.
}
54 \docparam{size
}{Window size. If the default size (-
1, -
1) is specified then the window is sized
57 \docparam{n
}{Number of strings with which to initialise the control.
}
59 \docparam{choices
}{An array of strings with which to initialise the control.
}
61 \docparam{style
}{Window style. See
\helpref{wxCheckListBox
}{wxchecklistbox
}.
}
63 \docparam{validator
}{Window validator.
}
65 \docparam{name
}{Window name.
}
67 \membersection{wxCheckListBox::
\destruct{wxCheckListBox
}}
69 \func{void
}{\destruct{wxCheckListBox
}}{\void}
71 Destructor, destroying the list box.
73 \membersection{wxCheckListBox::Check
}\label{wxchecklistboxcheck
}
75 \func{void
}{Check
}{\param{int
}{item
},
\param{bool
}{ check = TRUE
}}
77 Checks the given item.
79 \wxheading{Parameters
}
81 \docparam{item
}{Index of item to check.
}
83 \docparam{check
}{TRUE if the item is to be checked, FALSE otherwise.
}
85 \membersection{wxCheckListBox::IsChecked
}\label{wxchecklistboxischecked
}
87 \constfunc{bool
}{IsChecked
}{\param{int
}{ item
}}
89 Returns TRUE if the given item is checked, FALSE otherwise.
91 \wxheading{Parameters
}
93 \docparam{item
}{Index of item whose check status is to be returned.
}