fred@hoth.stsci.edu (Fred Romelfanger) (06/18/91)
I am running into a small problem with geometery management with the RowColumn widget and label alignment. I am createing a RowColumn widget with the packing set to XmPACK_COLUMN. I am then creating a bunch of push buttons with the alignment set to XmALIGNMENT_CENTER. When I manage the children, the buttons are packed properly, but they are all left justified rather than centered. I have found that if I manage the children first and then set the alignment it comes out right. Is this the correct behavior or is there a bug with pushbuttons ignoring the alignment setting when they get a geometry request from the parent? Thanks in advance -- fred.
sydorow@bisco.kodak.com (Steve Sydorowicz) (06/19/91)
> >I am running into a small problem with geometery management with the RowColumn >widget and label alignment. I am createing a RowColumn widget with the >packing set to XmPACK_COLUMN. I am then creating a bunch of push buttons >with the alignment set to XmALIGNMENT_CENTER. When I manage the children, >the buttons are packed properly, but they are all left justified rather than >centered. You need to set XmNentryAlignment in the RowColumn to XmALIGNMENT_CENTER. This resource overrides the Label settings and is by default "Left". Steve -- -------------------------------------------------------------------------------- Stephen J. Sydorowicz Azatar Computer Systems REPLY TO: sydorow@bisco.kodak.com (716)726-5636 Opinions expressed do not reflect those of my employer