/  Yamcs Studio User Guide  /  Widgets  /  Action Button

Action Button

Control widget for executing an action when clicked.

For example, a button can be used to open another display.

Action Button

Basic Properties

Name (name)

Human-readable name of this widget. Shown in the Outline view.

PV Name (pv_name)

The name of the main PV for this widget. If set, the widget’s value follows value updates of the corresponding PV.

It is not a requirement to use a PV. You may also control the widget value directly through scripting.

Widget Type (widget_type)

Readonly property describing the type of this widget.

Behavior Properties

Actions (actions)

Executable Actions attached to this widget.

Click Action Index (push_action_index)

Index in the list of associated actions of the action that must be executed when the control is clicked.

This property is only visible when Toggle Button is disabled.

Push Action Index (push_action_index)

Index in the list of associated actions of the action that must be executed when the control is pushed.

This property is only visible when Toggle Button is enabled.

Release Action Index (release_action_index)

Index in the list of associated actions of the action that must be executed when the control is released.

This property is only visible when Toggle Button is enabled.

Enabled (enabled)

Unset to make this control widget unusable.

Rules (rules)

Rules attached to this widget.

Scripts (scripts)

Scripts attached to this widget.

Toggle Button (toggle_button)

If yes, this button stays engaged after clicking it. You need to click it a second time to untoggle it.

If no, this button stays engaged only for as long as the mouse stays pressed.

Visible (visible)

Manage the visibility of this widget.

Border Properties

Alarm Sensitive (border_alarm_sensitive)

If the PV is in alarm state, the widget border and style change to alarm mode.

Border Color (border_color)

The color of the widget border.

Has no meaning with certain types of border styles (for example, raised borders have a fixed style).

Border Style (border_style)

The type of border. Some border styles also colorize the background of the widget’s bounding box.

Border Width (border_width)

The thickness of the widget border.

Has no meaning with certain types of border styles (for example, raised borders have a fixed style).

Display Properties

Alarm Pulsing (alarm_pulsing)

If enabled, the PV is in alarm state, and the properties BackColor Alarm Sensitive and/or ForeColor Alarm Sensitive are used, then the corresponding colors will fade in and out to draw operator’s attention.

BackColor Alarm Sensitive (backcolor_alarm_sensitive)

If the PV is in alarm state, then Background Color matches the corresponding alarm color.

Background Color (background_color)

The color of the background of the widget’s bounding box. Only visible when the widget uses a border style that fills up the widget area.

Font (font)

The font of the label.

ForeColor Alarm Sensitive (forecolor_alarm_sensitive)

If the PV is in alarm state, then Foreground Color matches the corresponding alarm color.

Foreground Color (foreground_color)

The color of the label.

Icon File (image)

An image file to be shown next to the button text.

Text (text)

The displayed text.

Tooltip (tooltip)

Tooltip when mouse hovers this widget.

Position Properties

Height (height)

Height of the widget area in pixels.

Scale Options (scale_options)

If autoscaling is enabled on the Display, then this property allows controlling whether and how this widget participates.

Width (width)

Width of the widget area in pixels

X (x)

X-coordinate in pixels of the top-left corner of the widget area.

Y (y)

Y-coordinate in pixels of the top-left corner of the widget area.