[comp.windows.x] Widget Size

ta_k@maths.su.oz.au (Katya Ta) (05/22/91)

Hi,

Firstly I'm using the Xcu and Athena Widget sets.

My problem is I have a widget that contains another and I want the container to
be the size of the child widget (preferably not smaller, but definitely not
larger). The container is a composite widget. In its Query Geometry method I
return the child's preferred size. However the container widget is still to big.
How do I get around this or should I derive the container from a form widget
instead of a composite widget (I didn't do this as I thought it wasn't worthwile
as the container only ever has one child.)

thanks a lot

bye Katya

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-
      /   __    |             Katya Ta                 
   ----  |__| __|__           University of Sydney     
    --   |__|   |             Australia                
    --   |__|  \|             (ta_k@maths.su.oz.au)    
    __     /|   |                                            
   |__|  _/ |   | <-- Chay(Cantonese) == Ta.(Vietnamese) :)  
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-