@begin(header)
author: ackerman=ag@.ics.uci.edu
show_author: ShowNone
author_organization: Harvard X Class
node_expert: ackerman=ag@ics.uci.edu 
expiration_date: 11/25/93
last_modifier: ackerman=ag@.ics.uci.edu
last_mod_date: 11/25/91
mod_num: 3
@end(header)
-------------
Label Widget
-------------

@begin(Q)
How can I align the text in a label (button, etc) widget?
@end(Q)

@begin(A)
The alignment for the label widget is controlled by the resource
XmNalignment, and the default centers the text. Use this resource to
change it to left or right alignment.  However, when the label (or any
descendant) is in a row column, and XmNisAligned is True (the
default), the row column aligns text using its resource
XmNentryAlignment. If you want simultaneous control over all widgets
use this, but otherwise turn XmNisAligned off and do it individually.

					Motif FAQ 8/12/91

@end(A)

@begin(Q) 
Why doesn't label alignment work in a RowColumn?  
@end(Q)

@begin(A)
RowColumn has a resource XmNisAligned (default True) and and
XmNentryAlignment (default XmALIGNMENT_BEGINNING).  These control
alignment of the labelString in Labels and descendants. Set
XmNisAligned to False to turn this off.

					Motif FAQ 8/12/91

@end(A)

@begin(Q)
How can I set a multiline label?
@end(Q)

@begin(A)
In .Xdefaults

      *Label*labelString:             Here\nis\nthe\nLabel

In code,

      char buf[128];
      XmString msg;
      sprintf(buf, "Here\nis\nthe\nLabel");
      msg = XmStringCreateLtoR(buf, XmSTRING_DEFAULT_CHARSET);
      XtSetArg (args[n], XmNlabelString, msg);

Gives a four line label, using the escape sequence \n for a newline.

					Motif FAQ 8/12/91

@end(A)

@begin(Q)
How can I have a vertical label?
@end(Q)

@begin(A)
Make a multiline label with one character per line, as in the last
question. There is no way to make the text rotated by 90 degrees
though.

					Motif FAQ 8/12/91

@end(A)
