| 83 | void CheckBox::setClickSound(sp<Sample> sample) { buttonclick = sample; } |
| 84 | |
| 85 | void CheckBox::setChecked(bool checked) |
| 86 | { |
| 87 | if (Checked == checked) |
| 88 | return; |
| 89 | Checked = checked; |
| 90 | this->pushFormEvent(FormEventType::CheckBoxChange, nullptr); |
| 91 | if (checked) |
| 92 | { |
| 93 | this->pushFormEvent(FormEventType::CheckBoxSelected, nullptr); |
| 94 | } |
| 95 | else |
| 96 | { |
| 97 | this->pushFormEvent(FormEventType::CheckBoxDeSelected, nullptr); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | sp<Control> CheckBox::copyTo(sp<Control> CopyParent) |
| 102 | { |
no test coverage detected