Actions SetWidgetAttribute - thica/ORCA-Remote GitHub Wiki

setwidgetattribute

Sets / changes some attributes of a TEXTFIELD , BUTTON, PICTURE, RECTANGLE, CIRCLE widget.

Attribute Description
string setwidgetattribute
widgetname Name of the widget, which attribute should be change
attributename Name of the attribute to change. You can set the following attributes:
  • 'bold': Changes the font to bold or not to bold (0/1)
  • 'italic': Changes the font to italic or not to italic (0/1)
  • 'textcolor': Sets the text color (hex RGBA)
  • 'caption': Sets the caption of text
  • 'fontsize': Sets the font size of text
  • 'enable': Enable/Disables a widget (0/1)
  • 'remove': Removes the widget from the page
  • 'setfocus': Sets the focus to a widget. Used only for INPUTFIELDS to bring the keyboard to front
  • 'picturenormal': Sets the picture of a BUTTON or PICTURE. For a BUTTON, this is the standard picture.
  • 'picturepressed': Sets the pressed picture of a BUTTON.
  • 'color': Sets the background color (hex RGBA), (RECTANGLE, CIRCLE only)
  • 'transparency': Sets the transparency of a widget
  • 'allbuttonsoff': Disables all buttons of a button group (SWITCH only)
  • 'action': Sets the action of a widget
  • 'startangle': For Circles: The start angle of the circle
  • 'endangle': For Circles: The end angle of the circle
  • 'min': For Knobs and Sliders: Sets the min value
  • 'max': For Knobs and Sliders: Sets the max value
  • 'filename': For Video: Sets the video filename/url
attributevalue New Value of the attribute
touchtype For action attribute: the touch type of the action
  • (nothing = Standard action)
  • Other options are 'double', 'up', 'down'
autoupdate Calls UpdateWidget, after setting the new attribute
ignoremissing Dont raise an error if widget is missing
A short example:
<action name="wait some time" string="wait" time="500" />
⚠️ **GitHub.com Fallback** ⚠️