Checkbox.onClick

wxEVT_COMMAND_CHECKBOX_CLICKED

When the user clicks on this checkbox.


Prototype

function onClickHandler ( object_ event, boolean_ isCheked )

Example

This example prints the name of the checkbox when the user click.

1
2
3
4
5
 local function onClickHandler ( this,  isChecked )
    print ( 'the click is on the checkbox "'.. this:getSender():getName() ..'"' )
 end

 mycheckbox.onEnter:setHandler(onEnterHandler)