[comp.windows.x] some noddy athena widget questions

crouch@crunchie.axion.bt.co.uk (the man whose head expanded) (10/05/89)

Hi,

I've got a few noddy athena widget questions. Apologies if these have been
asked before.

1)	How do you force a sub widget (in particular a box widget) to sit at the
bottom of a vpane widget?

2)	If I try to get the height of a box widget it seems to ignore the height
of its children. How can I get the combined height?

3)	Is there any way of finding out how many rows of widgets are in a box
widget?

Any help will be gratefully received.

Chris
------------------------------------------------------------------------------
Chris Rouch                                              crouch@axion.bt.co.uk
RT3141, BTRL, Martlesham Heath, Ipswich, England.               +44 473 646093

unspoilt by progress

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (10/11/89)

> 1)	How do you force a sub widget (in particular a box widget) to sit at the
> bottom of a vpane widget?

What do you mean by at the bottom?  If you just want it to be the last entry
then manage it last (or create it last).  If you want to make sure it
doesn't grow the try setting the XtNmax constriant resource for this child
of the VPaned widget.  XtNskipAdjust may have some effect, it will work in
R4 (when that is avaliable), but I am not sure how things behaved it R3.

> 2)	If I try to get the height of a box widget it seems to ignore the height
> of its children. How can I get the combined height?

Make sure you have realized the Box before you try to get its height and widget.
Geometry Management does not actually take place until realize time.

> 3)	Is there any way of finding out how many rows of widgets are in a box
> widget?

No defined way, but if all the children are the same height you can always
divide.

Hope this helps.

						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213