back to gui 

wxCheckListBox

generated from ../src/mod_gui/control/chklstbx.cpp

A checklistbox is like a listbox, but allows items to be checked or unchecked.

Constants

Constructor

wxCheckListBox

wxCheckListBox()
 
wxCheckListBox(Parent, 
               Id, 
               Position = wxDefaultPosition, 
               Size = wxDefaultSize, 
               Items = null, 
               Style = 0, 
               Validator = null)
 
Name Type Default Description
Parent wxWindow The parent of this control
Id Integer A window identifier. Use -1 when you don't need it.
Position wxPoint wxDefaultPosition The position of the CheckListBox control on the given parent.
Size wxSize wxDefaultSize The size of the CheckListBox control.
Items Array null An array of Strings to initialize the control
Style Integer 0 The wxCheckListBox style.
Validator wxValidator null A validator

Constructs a new wxCheckListBox object.

Properties

Name Type Description
checked read only Array Array with wxCheckListBoxItem elements. Use it to check/uncheck a specific item.

Methods

check

check(Index, 
      Check = true)
 
Name Type Default Description
Index Index
Check Boolean true

Returns true when the item with the given index is checked

create

create(Parent, 
       Id, 
       Position = wxDefaultPosition, 
       Size = wxDefaultSize, 
       Items = null, 
       Style = 0, 
       Validator = null) : Boolean
 
Name Type Default Description
Parent wxWindow The parent of this control
Id Integer A window identifier. Use -1 when you don't need it.
Position wxPoint wxDefaultPosition The position of the CheckListBox control on the given parent.
Size wxSize wxDefaultSize The size of the CheckListBox control.
Items Array null An array of Strings to initialize the control
Style Integer 0 The wxCheckListBox style.
Validator wxValidator null A validator

Creates wxCheckListBox.

isChecked

isChecked(Index) : Boolean
 
Name Type Default Description
Index Index

Returns true when the item with the given index is checked

Events

onCheckListBox Called when an item is checked or unchecked. The function that is called gets a wxCommandEvent object.


SourceForge.net Logo Support This Project

Table of Contents

Prototype

wxListBox

Constructor

wxCheckListBox

Properties

checked

Methods

check
create
isChecked

Events

onCheckListBox


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.