Edit.border read/write property
Get or set the edit border visibility, a true
value means that the border is shown, a false
value means that the border is hidden.
Example
local ui = require "ui"
-- create a simple edit
local win = ui.Window("Edit.border sample", 320, 200)
local edit = ui.Edit(win, "", 10, 44, 300, 150)
local button = ui.Button(win, "Hide/Show border", 100, 10)
edit.rtf = true
edit.font = "Impact"
edit.fontsize = 24
edit:append("\nLuaRT")
edit.selection.align = "center"
-- Hides/Shows edit border when button is clicked
function button:onClick()
edit.border = not edit.border
end
ui.run(win):wait()