setting size/positon for openUserWindow()
Posted: Fri May 14, 2010 2:39 pm
Hi, I wonder if it possible to set size of user windows from Lua? Currently I have to do it manually each time Mudlet started. Please see wt.create() function which suppose to create new window. (I don't want to use console window, because use windows offering better flexibility e.g. ability to resize, tab, standalone flowing win...)
Thank you
Thank you
Code: Select all
-- package Window Tools
wt = {}
function wt.create(winName)
openUserWindow(winName)
-- TODO set window size, position ... ?
setWindowWrap(winName, 80)
end
function wt.appendSelected(winName)
copy()
appendBuffer(winName)
end
function wt.echo(winName, message)
echo(winName, message)
end
function wt.clear(winName)
clearWindow(winName)
end