Radiobutton.tooltip read/write property


Get or set the tooltip text that appears when the user moves the mouse over the Radiobutton, 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("Radiobutton.tooltip sample", 320, 200) local radiobutton = ui.Radiobutton(win, "unchecked", 115, 80) function radiobutton:onClick() self.text = self.checked and "checked" or "unchecked" self.tooltip = "The Radiobutton is "..self.text end -- update tooltip and show the window radiobutton:onClick() win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible