Radio Button
Overview
Radio Button allows users to select a single option within a group of options.
When users select a Radio Button, other Radio Buttons in the same group can not be selected.
- Radio Button
Properties
Property | Description |
---|---|
Checked | Whether the current control is checked. |
Click Event | Whether to trigger a click event to the current control. |
Hint Text | Show hint text when the mouse is hovering over the control. |
Events
Callback Name | Callback Function |
---|---|
on_click | The callback after left-clicking. |
on_right_click | The callback after right-clicking. |
on_checked_changed | The callback when the control changes its check state. |
Lua Script Example
self.Checked = true
self.ClickEvent = true
self.HintText = nx_widestr("RadioButton")
-- When left-clicking the RadioButton, the on_click function will be executed.
function RadioButton_click(self)
nx_msgbox("RadioButton_click")
end