CommonCtrl.CheckBox
a CheckBox control using a button and a text;
Description
Sample Code
NPL.load("(gl)script/ide/CheckBox.lua");
local ctl = CommonCtrl.checkbox:new{
name = "checkbox1",
alignment = "_lt",
left = 0,
top = 0,
width = 150,
height = 26,
parent = nil,
isChecked = false,
text = "check box",
};
ctl:Show();
Member Functions
checkbox:GetCheck
get the isChecked property
syntax
function checkbox:GetCheck()
checkbox:SetCheck
set the check property
syntax
function checkbox:SetCheck(bChecked)
parameters
checkbox:SetText
set the text property
syntax
function checkbox:SetText(text)
parameters
checkbox.OnCheck
called when the check button is pressed.
syntax
function checkbox.OnCheck(ctrName)
parameters
Topic revision: r1 - 2008-02-29
- LiXizhi