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 FAQ
  
next page: X07) Resource specification errors in Xt/v1.9

X06) How do I set font information in MotifStrings?




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:















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 FAQ
  
next page: X07) Resource specification errors in Xt/v1.9