CWinCtrlCheckbox

Script: CHECKBOX

This is a checkbox button control .

It can display seven badges in the same way as buttons .

It is possible to have contents. It associates the controls to be activated when the button is on.

Callbacks arriving at :class:`CWindowBase<CWindowBase>`

class CWinCtrlCheckBox
Boolean check { get; set; }

Change a check box status.

  • true:

Turn ON and active any associated content.

  • false:

Turn OFF and hide any associated content.

Example of use

// get control
CWinCtrlCheckbox       cbSelect = find<CWinCtrlCheckbox>(CHECKBOX_Select);

if (cbSelect.check) {
  //on
} else {
  //off
}
// Get BUTTON(A) from within content
// Content in the container can be accessed by find as follows
CWinCtrlButton btnA = find<CWinCtrlButton>(BUTTON_A);

// click callback
override protected void onClick(CWinCtrlBase cCtrl) {
    switch (cCtrl.id) {
      case CHECKBOX_Select:
        break;
    }
}
 // hold callback
override protected void onHold(CWinCtrlBase cCtrl) {
    switch (cCtrl.id) {
      case CHECKBOX_Select:
        break;
    }
}