wxchecklistboxa checklistbox is like a listbox, but allows items to be checked or unchecked. when using this class under windows wxwidgets must be compiled with use_owner_drawn set to 1. only the new functions for this class are documented; see also wxlistbox. please note that wxchecklistbox uses client data in its implementation, and therefore this is not available to the application. derived from
wxlistbox include files <wx/checklst.h> window styles see wxlistbox. event handling
see also wxlistbox, wxchoice, wxcombobox, wxlistctrl, wxcommandevent members
wxchecklistbox::wxchecklistbox
wxchecklistbox::wxchecklistboxwxchecklistbox() default constructor. wxchecklistbox(wxwindow* parent, wxwindowid id, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, int n, const wxstring choices[] = null, long style = 0, const wxvalidator& validator = wxdefaultvalidator, const wxstring& name = "listbox") wxchecklistbox(wxwindow* parent, wxwindowid id, const wxpoint& pos, const wxsize& size, const wxarraystring& choices, long style = 0, const wxvalidator& validator = wxdefaultvalidator, const wxstring& name = "listbox") constructor, creating and showing a list box. parameters parent
id
pos
size
n
choices
style
validator
name
wxpython note: the wxchecklistbox constructor in wxpython reduces the n and choices arguments are to a single argument, which is a list of strings. wxperl note: in wxperl there is just an array reference in place of n and choices.
wxchecklistbox::~wxchecklistboxvoid ~wxchecklistbox() destructor, destroying the list box.
wxchecklistbox::checkvoid check(int item, bool check = true) checks the given item. note that calling this method doesn't result in wxevt_command_checklistbox_toggle being emitted. parameters item
check
wxchecklistbox::ischeckedbool ischecked(unsigned int item) const returns true if the given item is checked, false otherwise. parameters item
|