PDA

View Full Version : Dynamically Resizing Windowlists



dulux-oz
May 20th, 2014, 12:45
Hi Guys,

I've got three windowlists on a parent windowcontrol (ie they are all on the same frame, separated by horizontal lines). I need to resize the three windowlists based on the height of the parent windowcontrol, but I can't figure out how to do it ie I can't seem to locate a setSize() function for the windowlists.

Any help or ideas would be appreciated.

Cheers

Ikael
May 20th, 2014, 13:01
setAnchoredHeight or setStaticBounds from windowcontrol are the way to go (depending how you position windowlists). I recommend anchoring them. There is also small thing about initialization code that parent window's size might be unknown in onInit phase. There are several tricks you can do to get what you are planning, but depending on your need it can vary.

dulux-oz
May 20th, 2014, 13:04
Thanks - I'll try them out.

I'm aware of the onInit() issue and already have a working solution, but thanks for the heads-up

Cheers