Skip to main content

Example: Positioning a Button according to a Visualization Style

Product: CODESYS Visualization

This example shows how to define the text position of buttons with embedded images according to visualization style.

_example_img_visu_style.png

Description

The text position of buttons can be changed using the Style15.visustyle.xml visualization style. You can find the style in the download in the Style ZIP file.

Additional information

The positions are defined by parameters as follows:

  • <Value name="Button-Absolut-TextOffset-Left" type="DINT">40</Value>

  • <Value name="Button-Absolut-TextOffset-Right" type="DINT">0</Value>

  • <Value name="Button-Absolut-TextOffset-Top" type="DINT">40</Value>

  • <Value name="Button-Absolut-TextOffset-Bottom" type="DINT">0</Value>

System requirements and restrictions

Programming system

CODESYS Development System (version 3.5.14.0 or higher)

Runtime system

CODESYS Control Win (version 3.5.14.0)

Add-on components

-

Note

_example_icon.png DOWNLOAD Project