Entry.height read/write property
Get or set the height of the Entry. The height starts from 0 (top side of the Entry) and increase to the bottom direction.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Entry.height sample", 320, 200)
local entry = ui.Entry(win, "Text field", 110, 60)
local inc_btn = ui.Button(win, "Increase Entry.height !", 15, 10)
local dec_btn = ui.Button(win, "Decrease Entry.height", inc_btn.x+150, inc_btn.y)
entry.fontstyle = { bold = true }
function inc_btn:onClick()
local delta
if self == inc_btn then
delta = 10
else
delta = -10
end
entry.height = entry.height + delta
end
dec_btn.onClick = inc_btn.onClick
-- shows the Window
win:show()
-- update user interface
repeat
ui.update()
until not win.visible