Edit.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("Edit.tooltip sample", "fixed", 340, 230) local label = ui.label(win, "Enter text :", 10, 10) local edit = ui.Edit(win, "", label.x + label.width + 4, label.y) -- set edit.properties edit.font = "Times New Roman" edit.fontsize = 10 edit.wordwrap = true edit.text = [[Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]] edit.tooltip = "I'm an Edit object !" win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible