matt.antone
April 28th, 2009, 05: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?
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?