Hello Dave!

that is what I do in fact.

you can look here
http://cvs.sourceforge.net/viewcvs.py/nebula-irc/nebula/help.c?rev=1.9&view=markup
the macro is defined in main.h to one "of those functions".

#ifdef HAVE_XMSTRINGGENERATE
#define XM_STRING_GEN_COMP(str)\
        XmStringGenerate(theString, XmFONTLIST_DEFAULT_TAG, XmCHARSET_TEXT, 
NULL);
#else
#define XM_STRING_GEN_COMP(str)\
        XmStringCreateLtoR(str, XmFONTLIST_DEFAULT_TAG);
#endif

depending if we have motif 2 or motif 1.x
In fact it works under regular motif fine (checked on AIX, IRIX,
Solaris) and on OpenMotif.

So this led me already think it was a lesstif bug. When I saw that
AxyFtp under lesstif behaves the same... I thought to report this.

As other people reported me the same problems on their boxes I am
quite sure it is not a specific problem of mine.

-R

On Thu, 18 Nov 2004 08:56:59 -0600, Dave Williss
<[EMAIL PROTECTED]> wrote:
> I've seen that with regular Motif too.  The solution we came up
> with was to just create an XmString using one of the XmStringCreate
> functions (I don't recall which, but one of them handles newlines
> correctly) and set the XmNlabel of the label widget on creation.
> After creating the label, it's safe to XmStringFree the XmString,
> as the label makes a copy.
> 
> 
> 
> ----- Original Message -----
> From: "Riccardo Mottola" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 18, 2004 5:05 AM
> Subject: [Lesstif-discuss] NL bug in text label ?
> 
> > Hello,
> >
> > I am writing a small IRC client called nebula (you are all invited to
> > try, report and help...) and I noticed a problem in text labels: if a
> > new line is included (\n) to split the lines, in lesstif the text is
> > split but a NL character is printed out too! On some compiled version
> > (namely the one in debian) only the character is printed and no new
> > line is inserted resulting in too long lines. (In my case it is in the
> > about box). I have noticed that this happens with other Motif
> > applications too.
> > My code compiled under Solaris or Irix works fine and also on
> > OpenMotif so for sure there is a different behavior on the side of
> > lesstif. Also this method of splitting the lines is suggested in the
> > Motif faq, so I would say it is a bug.
> >
> > -Riccardo
> >
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: InterSystems CACHE
> > FREE OODBMS DOWNLOAD - A multidimensional database that combines
> > robust object and relational technologies, making it a perfect match
> > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> > _______________________________________________
> > Lesstif-discuss mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/lesstif-discuss
>


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Lesstif-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss

Reply via email to