Scrollbar

The scrollbar element can be used to modify the value of a variable (or vice versa). The slider position will correspond to the value of an assigned variable within a defined value range.

The user can move the slider in online mode by clicking on the slider and then moving it by moving the mouse - or alternatively by clicking on one of the arrow symbols on the scrollbar, whereby each mouse-click will move the slider (and thus the variable value) by 1 in the respective direction: If the slider is moved to the right resp. up, the value will be increased, if the slider is moved to the left resp. down, the value will be decreased.

../_images/2ed580a64377ee560a3313905c72d969

A vertical or horizontal display of the scrollbar can be reached by a respective shaping of the element (see ‘Insert’ ‘Scrollbar’).

The configuration dialog gets opened by a double-click on the element.

../_images/f444474c290bd9790a317f340780c080
  • Slider: Enter here the path of the project variable, the value of which should correspond to the slider position between the given Minimum value and Maximum value (e.g. “PLC_PRG.ivar”). So, when the slider gets moved in online mode, the value of the variable will change. Vice versa, if the variable gets modified by any other input the slider would get moved correspondingly.
  • Minimum value, Maximum value: Boundaries for the value range which can be displayed for the variable assigned to the slider. In horizontal scrollbars the minimum value corresponds to the left-most position of the slider, in vertically scrollbars to the bottom-most position. The values can be entered directly or via a project variable (e.g. “0”, “200”, “PLC_PRG.minvar”).
  • Invisible: The visibility of the element in online mode can be controlled dynamically, if here an appropriate boolean variable is entered, e.g. “PLC_PRG.bScrollbar_vis”. A static definition is also possible (“TRUE”, “FALSE” resp. “0”, “1”). Default: visible.
  • Tooltip-display: If “dynamic texts” should be used for the tooltip text, here the ID of the prefix-ID-combination must be entered, which uniquely references the desired text in a specific language file (xml-format). You can enter the ID directly (string, e.g. “tt_scrollbar1”) or via a project variable of string format which gives the ID (e.g. “PLC_PRG.tt_ID”). Concerning this see the help pages on Tooltip and generally on Language Switching.