stason.org logo lotus


previous page: X05) Why do I get the error "Error: NULL ArgVal in XtGetValues" when executing my Xt program using the xt/v1.8 libraries? page up: BETA Programming Language FAQnext page: X07) Resource specification errors in Xt/v1.9

X06) How do I set font information in MotifStrings?

 Books
 TULARC
















Description

This article is from the FAQ, by with numerous contributions by others.

X06) How do I set font information in MotifStrings?

In order to set font information in MotifStrings, you can use the following
as a template:

   sensorLabel: @Label
     (# init::
          (# s: @labelString;
             t: @MotifString
                  (# init::
                       (#
                       do ('Sensor:','ItalFont',XmSTRING_DIRECTION_L_TO_R)
                            -> t.setTextSegment;
                       #);
                  #);
          do (...)
             t.init;
             t->s.set;
          #);
     #);


 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

programming







TOP
previous page: X05) Why do I get the error "Error: NULL ArgVal in XtGetValues" when executing my Xt program using the xt/v1.8 libraries? page up: BETA Programming Language FAQnext page: X07) Resource specification errors in Xt/v1.9