[comp.windows.x.motif] Wrapping for XmLabel

jcw@hpfcbig.SDE.HP.COM (Judy Walker) (09/04/90)

HP Toolkit's XwstaticText widget had a resource called XtNwrap that
allowed you to wrap the lines of text within the widget.  So, if you
have a text that has too many characters for a specified window size,
it will automatically insert a newline character to break the line.

The Motif equivalent of XwstaticText is XmLabel.  However, I can't
find a resource for XmLabel that is similar to XtNwrap.  Does anybody
know where something like XtNwrap is for XmLabel?

Thanks in advance.

Judy Walker

ems@socrates.JPL.NASA.gov (Eric Slimko) (09/07/90)

  You could use a Motif Text widget with XmNeditable set
to False and XmNwordWrap set to True.  It gives similar
results.

-- 
Eric Slimko               |  Jet Propulsion Laboratories
ems@socrates.jpl.nasa.gov |  NASA/CalTech