setting size/positon for openUserWindow()

Post Reply
lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

setting size/positon for openUserWindow()

Post 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

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: setting size/positon for openUserWindow()

Post by Vadi »

Not yet - do ask for it in the api thread though

lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: setting size/positon for openUserWindow()

Post 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.)

Post Reply