Article # 274, added by Geoworks, historical record
| first | previous | index | next | last |

Using PointSizeControl to change size of text object.



Q. I have a PointSizeControl object that works to set the size
   of a VisText object. I am trying to have the point size saved
   when the program exits and then load that point size when the
   program starts. I have the size information saved to the GEOS.INI
   file, and that seems to be working fine. However, when the
   program starts, it does all the message sending, but the
   point size control is set to 8 point, instead of whatever it's
   supposed to be.

A. The problem here is that the PointSizeControl has this field:

       GCI_output = ( TO_APP_TARGET );

   If your text object does not have the target when the
   MSG_PSC_SET_POINT_SIZE is sent then that size change will be
   ignored completely. To remedy this, set the GCI_output to
   the text object, like this:

       GCI_output = @MyTextObject;

   If you can't do this (eg., because the text object is duplicated
   by the document control) then make sure the text object receives
   the MSG_META_GRAB_TARGET_EXCL message before you send the
   MSG_PSC_SET_POINT_SIZE message.