 |
ALPHA-VISION® Graphic Objects: Text
|
Text
SUMMARY
Creating and binding Text.
CONTENTS
- Text
- Binding
Text
Text:
CTRL+ENTER creates a new line for multiline text.
Character Set:
Select ". . ." via Window Font-Dialog.
Format:
Lists Windows-Options which can be activated or deactivated by clicking
into the box on the left hand side:
- wordwrap:
Initiates an automatically Linefeed.
- no conversion of & in '_':
Suppresses the according ALPHA-VISION Function, which sometimes leads to
confusion.
- No clipping of text:
Texts are not cut off if there exceeding the rectangle.
- Auslassungszeichen am Ende:
If the text exceeds the rectangle it is shortened to "Abcdefgh..."
- Datei-Auslassungszeichen:
If a file name exceeds the rectangle it is shortened to
"c:\...\abc\def.txt"
Binding
Text
Example: Refresh-Script:
SetVal(Text, OBJ.MyObject.Value);
The attribute Text contains the text to be displayed. Via SetVal() the
property Value of the Data-Object ‘MyObject’ is assigned to it. Thereby
numbers and times are converted to the default string format automatically.
If the default is insufficient a converting function must be used.
Example
Cnvrt2Str(OBJ.MyObject.Time, "DD.MM.YYYY hh:mm:ss");
//The formatted string is found on the stack
SetVal(Text, );
//The empty argument takes the value from the stack
LineColor
The Text Color, it is handed over as string.
Example:
SetVal(LineColor, "_Red");
FillColor
The Background Color, it is handed over as string.
Example:
SetVal(FillColor, "_Black"); //Background Color default-black
Example:
SetVal(FillColor, ""); //Background Color transparent