Page 1 of 1

setting size/positon for openUserWindow()

Posted: Fri May 14, 2010 2:39 pm
by lex
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

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

Re: setting size/positon for openUserWindow()

Posted: Fri May 14, 2010 4:01 pm
by Vadi
Not yet - do ask for it in the api thread though

Re: setting size/positon for openUserWindow()

Posted: Sat May 15, 2010 10:42 am
by lex
Thanks for quick response.

I did discover some user windows limitation (if you have open multiple sessions), so I want to think about this requirement a bit. (Afterwards I will probably suggest to somehow merge console and user windows.)