align_right_24 Justify, Right, Decimal, Center

<< Click to Display Table of Contents >>

Navigation:  Problems >

align_right_24 Justify, Right, Decimal, Center

To justify a text from the cursor, a second point (on the right) is needed to adjust the justification.

Within a frame, the boundary is the frame border, there is no need to set the right side, the syntax  can be used.
Outside of a frame, you must specify the right boundary with an = sign (syntax Œ).

Full syntax:

<CENTER> <RIGHT> <DECIMAL> <JUSTIFY>

</CENTER> </RIGHT> </JUSTIFY>

Syntax :        Œ <CENTER= [ decimalValue (in <UNITS> values)

| +decimalValue

| #bookmark (until the bookmark column)

| CcolumnNumber (column: abs. or rel.)

| C+columnNumberIncrement ]

         -OR, if the cursor is in a frame.-

 <CENTER>

<RIGHT>

<JUSTIFY>

about_24 Programming notes:

The text after the tag will be justified within the area defined by the current point and the next tag or end of line.

The decimal value is expressed in the current units values.

The current font is used

The <#PAGES> tag does not interrupt the sequence and is understood as a standard text by vpxPrint.

There is no need to specify </JUSTIFY>, </CENTER> or </RIGHT> after a frame close, this is done automatically by vpxPrint. These tags may be used to modify the justification within a frame.

For some reason, depending on the Windows APIs, some fonts do not accept the justification. It's the case with Calibri. Try to use another font if you experiment this problem.

Examples:

<CENTER=C60>This is centered.
The string 'This is centered.' is centered within the area from the current point to column 60.

<DECIMAL=12.5>999.99<B>     123.45
The decimal point of the value 999.99 is aligned to 12.5 (inch or mm depending on the setting). Note that the <B> tag interrupts the text.

<RIGHT=C+20>Right justification
The string 'Right justification' is right justified (current column + 20).

<R10><C10><#10><R+10><C+20><FRAME#1><USE#1>

<JUSTIFY>This text is justified left and right within the frame. You don't need to stop the justification after the frame.</USE>