[comp.windows.x] commandWidgetClass question

amir@pilat.Silvaco.Com (Amir J. Katz ) (04/16/91)

I have added a few buttons to xxgdb (X front end to GNU gdb).
The buttons work fine, except that they have a fixed size and the text inside
is truncated to 7 characters. Resizing the window causing replacement
of the buttons, but they remain the same size.
What do I need to do in order to have variable-width buttons ?

Please reply to me using the address below.
Thanks in advance,
   Amir J. Katz, System Manager

Internet:	amir@taux01.nsc.com or amir%pilat.UUCP@taux01.nsc.com
UUCP:		{decwrl,uunet,...}!nsc!taux01!amir
Phone:		+972 52-570713
Fax:		+972 52-570719
Snail-mail:	Amir J. Katz, Silvaco Israel Ltd.
		19 Maskit St., Herzelia, Israel 46733
-- 
   Amir J. Katz, System Manager

Internet:	amir@taux01.nsc.com or amir%pilat.UUCP@taux01.nsc.com
UUCP:		{decwrl,uunet,...}!nsc!taux01!amir
Phone:		+972 52-570713
Fax:		+972 52-570719
Snail-mail:	Amir J. Katz, Silvaco Israel Ltd.
		19 Maskit St., Herzelia, Israel 46733

converse@expo.lcs.mit.EDU (Donna Converse) (04/16/91)

> Resizing the window causing replacement
> of the buttons, but they remain the same size.
> What do I need to do in order to have variable-width buttons ?

Read about the constraint resources of the composite widget which
is the parent of the command buttons.  The parent manages the layout
of the command buttons, and the constraint resources allow the parent
to vary the layout policy according to the resource values.  The 
constraint resources of the composite widget apply to each child of
the composite; they allow the children to give individual layout
requirements.