w.szukalski wrote:
Dear Danny,



I appreciate your work but not your answer.



Add the following lines to your test20.c:



  fontlist = XmFontListAppendEntry(NULL,

  XmFontListEntryCreate("MY_FONT",

  XmFONT_IS_FONT,

  XLoadQueryFont(XtDisplay(toplevel),

   "-adobe-helvetica-bold-o-normal--17-0-75-75-p-*-iso8859-1")));



  XmString xmstr1 = XmStringCreateLtoR("Here Is A\nLabel", "MY_FONT");



one = XtVaCreateManagedWidget("One", xmPushButtonWidgetClass,
    toplevel,

    XmNfontList, fontlist,





and first compile it with LESSTIF, then with OPENMOTIF. And see

the difference.



My email to this list contained these lines. The code is from:



lesstif-0.94.4/test/Xm/pushbutton/test1.c

You posted code from test1.c but incomplete and modified. It would be much easier for everyone if you posted your complete source code (and the exact version of openmotif used would help too).




There I found that I can change the font size and the background

color, but never the foreground color.



winfried




--
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Lesstif-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss

Reply via email to