comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to resize a top level base widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to resize a top level base widget [message #83824] Mon, 08 April 2013 11:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
superchromix writes:

> Well, this is basically what you are doing in your resizing examples -
> you resize the draw widget according to the resize event generated by
> the base.

Well, not exactly. You wrote before:

> As far as I can ascertain, the correct way to resize a TLB is to
> resize the widgets contained within it.

I would say my approach is to lay out ALL my widgets in as many row and
column base widgets as I need to achieve the desired layout in the GUI.
(I normally set YPAD, XPAD, and SPACING to 0 in these layout base
widgets.) Then, I simply resize the TLB according to the new values in
the resize event structure and let everyone inside jostle around by
themselves until they have achieved their new locations.

The only exceptions I think I have ever made is some accommodation for
draw widgets. I sometimes resize these individually in the resize event
handler, in an attempt to keep them some percentage of the total overall
size of the top-level base. But draw widgets are, essentially, the ONLY
widgets I ever explicitly size.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Re: map_do_segments: map file: plow not found
Next Topic: Re: Finding pairs of points within a certain distance

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:32:22 PDT 2025

Total time taken to generate the page: 0.04366 seconds