Motif 1.2.X Text Widget

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
Motif 1.2.X Text Widget

Submitted by Anonymous on Tue, 01/09/2001 - 02:29. Developers
I created a Text Widget in Motif 1.2.X. I want to change the font but I notice that the only way to set the text is with an ASCII string. Can someone tell me the proper way to change Font ?

ICS_support

There`s an XmNfontList resource; it shows up in the man pages as being part of the "Text Output Resource Set". The type and usage are the same as for other Xm objects that you`re probably more familiar with.

Anonymous

So if I have this code fragment How would I set a new font from the XmNfontList resource of the Text Widget?

void Func (Widget TextW)
{
/*
Set New Font
*/
XmTextSetString (TextW, "Hello World");
}