Checkbox.tooltip read/write property


Get or set the tooltip text that appears when the user moves the mouse over the Checkbox, represented as a string value.
Set the property to an empty string to remove the tooltip message.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Checkbox.tooltip sample", 320, 200) local checkbox = ui.Checkbox(win, "unchecked", 115, 80) function checkbox:onClick() self.text = self.checked and "checked" or "unchecked" self.tooltip = "The Checkbox is "..self.text end -- update tooltip and show the window checkbox:onClick() win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible