SclGraphicsSetTextAlignment
Overview
Set the alignment of text to ensure it is draw in the correct position with respect to the point at which the text is inserted.
Synopsis
SclGraphicsSetTextAlignment $alignmentCode
Arguments
- alignmentCode
- < - Align the left edge of the characters with the insertion point.
- > - Align the right edge of the characters with the insertion point.
- ^ - Align the top of the characters with the insertion point.
- v - Align the bottom of the characters with the insertion point.
- * - Align the centre of the characters with the insertion point.
- <v - Align the bottom left edge of the characters with the insertion point.
- >v - Align the bottom right edge of the characters with the insertion point.
- <^ - Align the top left edge of the characters with the insertion point.
- >v - Align the top right edge of the characters with the insertion point.
Pass by value. Test is positioned with respect to the point at which the text is inserted. A simple scheme to define the text orientation using special characters is used to position the text relative to the insertion point. Permitted alignment codes include:
Returns
Nothing.
Examples
SclGraphicsOpen mynode SclGraphicsSetTextAlignment "<v" SclGraphicsClose