Natural size of explicitly-sized widget [message #55684] |
Mon, 27 August 2007 09:32 |
Jean-Paul Davis
Messages: 17 Registered: March 1998
|
Junior Member |
|
|
Does anyone know if there is a way to find the natural size of an
explicitly-sized widget, or to turn explicit sizing off for an
existing widget? I use non-absolute explicit sizing to add space and
get framed sub-bases to line up nicely, but the number of child
widgets in some of these sub-bases can change due to user
interaction. It may be possible to handle this by keeping track of
the sizes of everything, including each child widget, but it would
sure be easier if I could temporarily "turn off" explicit sizing and
obtain the natural size. Then I could use for every change the same
routine that I use when first setting up the layout (start with
default natural size and adjust to line things up).
Jean-Paul Davis
|
|
|