Re: Natural size of explicitly-sized widget [message #55682] |
Mon, 27 August 2007 09:52 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jean-Paul Davis writes:
> 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).
I think once you have made the (bad) decision to explicitly
size widgets, the programming gods make sure you have
to live with your decision. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|