Binding the visibility of a widget to a global variable
You can bind the visibility of a widget to a global variable. The widget will be displayed dependent on the value of the global variable. Example: A warning can be displayed as soon as a certain temperature is exceeded.
- Prerequisite
- Create a global variable (BOOL or numeric data type).
- Start editing the real-time application.
- In the menu bar, click Visualisation.
- On the drawing area, select the widget whose visibility you want to bind to a global variable.
- In the Properties, click the link button next to Visibility.
- The link button is activated and orange.
- In the Visibility list box, select the global variable you want to bind to the widget's visibility.