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

ParaAttr hints: margins, bullets, border lines



Here are some random notes about ParaAttr:

----
VTPA_prependChars is not supported in the GEOS text objects.


----
Paragraph margins:
VTPA_leftMargin - is the position on the left side of the document
    where a text line begins. This is only for text that wrapped
    from the right margin.

VTPA_paraMargin - is the left margin position for text that
    follows a hard return.  This is used for indenting the
    first line of a paragraph.

VTPA_rightMargin - is the distance from the right side of the
    document to wrap text.


----
For setting VTPA_borderFlags, you should use the
VisTextParaBorderFlags which are defined in
CInclude\Objects\Text\tCommon.h.

Here is an example that draws a double-line sqare around the text
VTPA_borderFlags = (VTPBF_LEFT | VTPBF_TOP |
		VTPBF_RIGHT | VTPBF_BOTTOM |
		VTPBF_DRAW_INNER_LINES);


----
Bullet points

To add bullet points to your text object, so it looks like this

   *  Some long string of text
      that wraps
   *  Some other bullet point
      with more wrapped text

Set VTPA_paraMargin less than VTPA_leftMargin, then add a tab
character (ASCII code is 0x09) right after whatever the bullet
point character. This will tabulate the text out to the
VTPA_leftMargin.

For example, if you set VTPA_paraMargin=100 and VTPA_leftMargin=150
and then put text like '*', 0x09, "Some long string that wraps",
it should end up looking like the example.