PDA

View Full Version : Windowlists and sub-window size *baffled*



Foen
March 26th, 2008, 23:38
Hi

I'm trying to work out how many entries can fit into a list when it is initialised.

The code sits in the onInit handler for the windowlist control, which should be invoked after the children are initialised.

When I iterate over the child windows and try to add up their heights, they return a zero value (zero height).

If anyone can help, I think the questions are:

1. Is there any way to determine child windows heights during onInit?
2. Is ther any other event I can use, which is called after the height has been established?

Cheers

Stuart

Toadwart
March 30th, 2008, 22:30
Maybe (haven't tested it) try putting the windowlist into a subwindow and the sizing code into the onInstanceCreated event of the subwindow. I think that gets called after the child window (and all internal components) have been created...

Foen
March 30th, 2008, 23:07
Thanks Toadwart, I'll give it a try!

Stuart

Bidmaron
December 23rd, 2008, 13:11
Did it work?

Foen
December 23rd, 2008, 15:05
Nope, I ended up hard-coding the size of the child windows :(

Stuart