[comp.windows.interviews] Glyph: :request

bmk@ninja.csc.ti.com (Brian M Kennedy) (06/14/91)

Question on InterViews 3.0 Requisitions:

If a TBBox contains 3 Glyphs with the following requisitions:
	LB: natural = 12.48, stretch = 0,     shrink = 0
  	 G: natural = 50,    stretch = 1e+13, shrink = 0
	LE: natural = 12.48, stretch = 0,     shrink = 0
then why does the TBBox request:
 	 B: natural = 74.96, stretch = 0,     shrink = 0

I would have expected stretch to be 1e+13 -- that is, the sum
of the stretchabilities.

If I include only Glyph G in the TBBox B, then it requests:
	 B: natural = 50,    stretch = 1e+13, shrink = 0
as I would expect.

From these two examples, it appears stretch of a TBBox is the
min of its components stretch's.  Is this correct?  If so, why?

Given that, how do I compose the following:

	+-------------------------------------+  <----+
        | fixed height                        |       |
        +-------------------------------------+       |
        |                                     |       |
        | variable height (varies as outer    |   resizable height
        |                  box is resized)    |       |
        +-------------------------------------+       |
        | fixed height                        |       |
        +-------------------------------------+  <----+

Thanks for any help.

---------------------------------
Brian M. Kennedy <bmk@csc.ti.com>
Computer Systems Laboratory
Computer Science Center
Texas Instruments Incorporated