Skip to main content

Check Button

Overview

Check Button allows users to select any number of options from the same set of buttons.

When the user selects a Check Button, all the rest Check Buttons in the same set can be selected at the same time.

  • Check Button

checkButton

Properties

PropertyDescription
CheckedWhether the current control is checked.
Click EventWhether the current control triggers a click event.
Hint TextDisplay the hint text while mouse hovering over the control.

Events

addCallBack1

Callback NameCallback Function
on_clickThe callback of left-click.
on_right_clickThe callback of right-click.
on_checked_changedThe callback of the changed checked state of the control.

Lua Script Example

self.Checked = true
self.ClickEvent = true
self.HintText = nx_widestr("CheckButton")

-- When the button state changed after left-clicking, the callback function of the on_checked_changed will be executed
function CheckButton_checked_changed(self)
nx_msgbox("CheckButton_checked_changed")
end