PDA

View Full Version : dynamic control height


matt.antone
April 28th, 2009, 06:28 PM
I have a set of lists that I want to put into a Grouplist control. Unfortunately each list has a variable amount of items and I'd like all of them to display.

I'm using the following on the first focused item to resize the first list.

<onfocus><![CDATA[
try:
list = mc.GetWindow(14000).GetList(2011)
count = list.size()
curlist = mc.GetWindow(14000).GetControl(2011)
curlist.setHeight(operator.mul(count,40))
except Exception, e:
print "ERROR " + str( e )

]]></onfocus>

Am I missing something?

idan
May 5th, 2009, 11:26 AM
hey,
regretably we currently do not support SetHeight function (you can see all the python supported functions here http://developer.boxee.tv/python-api-reference/).
maybe we will support it in the future. you will have to solve this in another way.
idan