Button.tooltip read/write property


Get or set the tooltip text that appears when the user moves the mouse over the control, 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("Button.tooltip sample", 320, 200) local button = ui.Button(win, "Hover me !", 100, 80) button.font = "Corbel" button.fontsize = 18 -- set the Button tooltip button.tooltip = "Click to exit" function button:onClick() win:hide() end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible