[comp.windows.x.motif] multi line labelString in app_defaults

SylvieJean@s9ia.ec.bull.fr (11/22/90)

I don't know how to specify the labelString of a pushbutton as
containing \n characters in an app_defaults file. 

I want to visualize :
    ---------
    | READ  |
    | NOTE  |
    ---------

My programm (motif 1.0) creates a pushbutton named "pb".

In my app-default file I have tried :

*pb.labelString: READ\nNOTE

and

*pb.labelString: 'READ' & 'NOTE'

    etc..

but it does not work. Do you have any solution ?

nazgul@alphalpha.com (Kee Hinckley) (11/26/90)

> 
> I don't know how to specify the labelString of a pushbutton as
> containing \n characters in an app_defaults file. 

If this isn't in the FAQ then it should be.

The only way you can do this is to provide your own Xt converter
to go from char* to XmString.  The default one is XmStringCreate
which (quite properly) does not do conversion of line feeds.
Ideally it should check the current LANG setting and character
set and do conversions if the character set is appropriate, but
don't hold your breath.