Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 1.37 KB

File metadata and controls

73 lines (60 loc) · 1.37 KB

TextFlip

Description

Procedure TextFlip flips newly created text vertically or horizontally. Parameter FlipType specifies the flip effect to be applied to the text.

Table - Text Flip Style

Flip Style Constant
No reflection 0
Horizontal reflection thru origin 1
Vertical reflection thru origin 2
PROCEDURE TextFlip(FlipType : INTEGER);
def vs.TextFlip(FlipType):
    return None

Parameters

Name Type Description
FlipType INTEGER Text flip setting for text.

Examples

VectorScript

TextFlip(1);
CreateText('Sample text string');

Python

{ ----- set the text parameters  ----- }
TextSize (gCellLabelSize);
PushAttrs;
{TextFace ([bold]);}
TextFlip (0);
TextRotate (#0);
TextSpace (2);
TextJust (2);
TextVerticalAlign (3);

BEGIN
	TextFlip( 2 );
	textAlignTop := NOT textAlignTop;
END;

ALLOCATE spaces [1..temp_i];
space_cnt := 0;
ForEachObject(LoadSpaceArray, (R IN ['Space']));
SortArray(spaces, space_cnt, 3);
TextFlip(0);
TextRotate(0);
TextSpace(2);
TextVerticalAlign(3);
TextWidth := 0;
vs.TextFlip(FlipType)

Version

Availability: from All Versions

Category