A CheckBox component. Basicly it is a slightly modified Button and works in the same ways like the Button. The checkbox class is using the icon to display the checkbox next to the text.
You can create and use a checkbox in this way:
ck = CheckBox:new(10,90,200,24,"Check me out!") function ck:onClicked(state) if (state) then print("I am checked") else print("I am unchecked") end end Container.getRootContainer():add(ck)The following skinssurface names are used by the checkbox class:
o-+ Component o-+ Button o-+ CheckBox
Creates a checkbox at given location and with given size. The caption is automaticly set to be aligned left on the skin and vertically centered. It also activates the autowidth parameter of the skin and makes the button it was derived from pushable.