Text Animation Properties

The Text properties allow the assigned variable's value to be displayed in the object to replace its title, and can be text or numeric type.

These properties are part of the Draws and Controls 'Animation' properties group.

To edit the Text properties, select the object and use the Movicon 'Properties Window' that shows.

 

 

Enable

Enabling this check-box will activate the Text function in the selected component. In this way, the object will display the assigned Variable's value instead of its orignal title at Runtime. This functionality is similar to that of the 'Display (Edit box)' controls from the 'Controls' class in the "Toolbox Window".

 

Draws' Text properties, and in particular those of Rectangles, can be used to create 'read only' Display objects.

 

Search Value in Strings Table

When enabling this option box, a search for the value of the variable, assigned to the "Text - Display Value" using the "Tag to Display" property, will be made in the strings listed in the string table to display it in the object's title. If the string ID cannot be found in the table, the variable's value will displayed instead.

 

Variable

The name of the variable whose value is to be displayed by the object is entered here.  As an alternative, it can also be selected with the "..." browse button on the right.

 

Value Format

The format with which to display the numeric values presented in the Variable is specified here. The format codes that can be used in this property are those listed in the paragraphs on  "Predefined Movicon Formats" and "Formats for Numerical values and strings" in the "Data Formats" section.

 

When using basic expressions in the object's 'Text' Animation Property, they must be set with the format "%f".

 

Format Variable

The name of the variable whose value will be used to determine the display format of the variable assigned to the Display is entered here. As an alternative, it can also be selected by using the  "..." browse button on the right. The displayed value format can also be changed at runtime by using this variable.  When this field is left empty, the format defined in the "Format Value" property will be used instead, otherwise the variable's contents will be used.

Numeric variables or string variables can be entered in this field:

 

 

Caution!  When using a string variable type, please make sure that you insert a correctly supported format.  If the string inserted is not in a valid string format, the value will not be displayed correctly.

 

"Byte Array" or "Structure" variable types (inserted as global variables without using any members) are not supported.  In this case, the value will be displayed with the format defined in the "Format Value". property.

 

 

 

See Also