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

How to right justify text in a GenText object.




Q. How do I get a GenText's text to be right justified?

A. Add the following attribute to the text object definition:

   ATTR_GEN_TEXT_DEFAULT_PARA_ATTR = {
       ( J_RIGHT << VTDPA_JUSTIFICATION_OFFSET )
   };

   There is also a J_LEFT and a J_CENTER which will left justify and
   center the text, respectively.