Animation of the text display Permalink

You can configure an animation of the display of text in the “Font variables” property. All basic elements have this property as well as tables, scroll bars, and text fields.

Example: Animate the font size

Requirement: A project with a visualization is open.

  1. Open the visualization and add a “Rectangle” element.

    The “Properties” view shows the configuration of the element.

  2. Configure the “Texts  Text” property with ‎Important‎.

  3. In the application, declare a type-compliant variable in the ‎PLC_PRG‎ POU.

    ‎iFontHeight : INT;‎

  4. Configure the “Font variables  Size” property with ‎PLC_PRG.iFontHeight‎.

  5. Implement a change in the size of the font.

    iFontHeight := iFontHeight + 1) MOD 20;

  6. Compile, download, and start the application.

    The application runs. The visualization opens. The rectangle is labeled ‎Important‎. The font size increases from 1 to 20.