Checkbox.text read/write property


Get or set the Checkbox caption as a string.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Checkbox.text sample", 320, 200) -- add a Checkbox... local checkbox = ui.Checkbox(win, "Check me", 130, 80) function checkbox:onClick() ui.info("checkbox.text property = "..self.text) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible