Visualization Element ‘Invisible input’

Symbol: a1b2d44bde758a08c0a8640e01438cde_fe0e3c8f83ab7e14c0a8640e00aeb06d

Tag: Common controls

This element is displayed in the editor with a dashed line and is not visible in online mode. You define the behavior of the element in the input configuration.

Element properties

Element name

Optional

Tip: Assign individual names for elements so that they are found faster in the element list.

Example: invisible_input_1

Element type Invisible input

Element property ‘Position’

The position defines the location and size of the element in the visualization window. These are based on the Cartesian coordinate system. The origin is located at the upper left corner of the window. The positive horizontal x-axis runs to the right. The positive vertical y-axis runs downwards.

X

X coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Y

Y coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Width

Specified in pixels.

Example: 150

Height

Specified in pixels.

Example: 30

Note

You can also change the values by dragging the box symbols ( a1b2d44bde758a08c0a8640e01438cde_7b449e02d0393877c0a8640e01fd8c9e ) to other positions in the editor.

See also

Element property ‘State variables’

The variables control the element behavior dynamically.

Deactivate inputs

Variable (BOOL). Toggles the operability of the element.

TRUE: User inputs do not have any effect in runtime more. The element is shown as deactivated.

Element property ‘Input configuration’

The properties contain the configurations for the user input when using the mouse or keyboard. A user input defines an event and one or more actions that are executed when an event occurs.

The Configure button opens the Input configuration dialog box for creating or modifying a user input.

Configured user inputs are briefly listed below the events. They each include the action that is triggered and the setting in short form.

Example: Execute ST code: a1b2d44bde758a08c0a8640e01438cde_c28d6f8fef486445c0a8640e01d20032 PLC_PRG.i_x := 0;

OnDialogClosed Input event: The user closes the dialog box.
OnMouseClick Input event: The user clicks the mouse button completely. The mouse button is clicked and released.
OnMouseDown Input event: The user clicks down on the mouse button.
OnMouseEnter Input event: The user drags the mouse pointer to the element.
OnMouseLeave Input event: The user drags the mouse pointer away from the element.
OnMouseMove Input event: The user moves the mouse pointer over the element area.
OnMouseUp Input event: The user releases the mouse button over the element area.
Tap When a mouse click event occurs, the variable defined in Variable is described in the application. The coding depends on the options Tap FALSE and Tap on enter if captured.
Variable

Variable (BOOL) that is set on mouse click.

Example: PLC_PRG.bIsTapped

TRUE: A mouse click event exists. It lasts while the user presses the mouse button over the element. It ends when the button is released.

FALSE: A mouse click event does not exist.

Requirement: The Tap FALSE option is not activated.

Tap FALSE

a1b2d44bde758a08c0a8640e01438cde_9a3f06830c0506c5c0a8640e012f0ace : The mouse click event leads to a complementary value in Variable.

TRUE: A mouse click event does not exist.

FALSE: While the mouse click event exists.

Tap on enter if captured

a1b2d44bde758a08c0a8640e01438cde_9a3f06830c0506c5c0a8640e012f0ace : During user input, it is also taken into consideration whether the mouse pointer is dragged within the element area or not while the mouse button is pressed.

TRUE: While the mouse click event exists and the mouse pointer is moved over the element area.

FALSE: A mouse click event does not exist. Or the user moves the mouse pointer outside of the element area while the mouse button is pressed.

The value is TRUE again as soon as the user moves the pointer back to the element area. The mouse is then captured.

Shift With the onset of a mouse click event, the variable is set; when the mouse click event is completed, the variable is reset.
Variable

Variable (BOOL). Its value toggled when the mouse click event is ended. This is when the user releases the mouse button while the mouse pointer is over the element area.

If the user releases the mouse button while the mouse pointer is outside of the element area, then the mouse click event is not ended and the value is not toggled.

Tip: The user can cancel a started toggle input by dragging the mouse pointer out of the element area.

Toggle on up if captured a1b2d44bde758a08c0a8640e01438cde_9a3f06830c0506c5c0a8640e012f0ace : The value toggles regardless of where the mouse pointer is when the mouse button is released. The mouse is then captured.
Keyboard shortcuts

Keyboard shortcut on the element for triggering specific input actions.

When the keyboard shortcut event occurs, the input actions in the Event(s) property are triggered. In this way, it is not the input action itself that leads to this input action, but the mouse input action.

Key

Key pressed for input action.

Example: T

Note: The following properties appear when a key is selected.

Event(s)
  • None
  • Mouse down: Pressing the key triggers the input actions that are configured in the OnMouseDown property.
  • Mouse up: Releasing the key triggers the input actions that are configured in the OnMouseUp property.
  • Mouse down/up: Pressing and releasing the key triggers the input actions that are configured in the OnMouseDown property and the OnMouseUp property.
Shift

a1b2d44bde758a08c0a8640e01438cde_9a3f06830c0506c5c0a8640e012f0ace : Combination with the Shift key

Example: Shift+T.

Control

a1b2d44bde758a08c0a8640e01438cde_9a3f06830c0506c5c0a8640e012f0ace : Combination with the Ctrl key

Example: Ctrl+T.

Alt

a1b2d44bde758a08c0a8640e01438cde_9a3f06830c0506c5c0a8640e012f0ace : Combination with the Alt key

Example: Alt+T.

Note

All keyboard shortcuts and their actions that are configured in the visualization are listed in the Keyboard configuration tab.

See also