Widgets BUTTON - thica/ORCA-Remote GitHub Wiki

BUTTON

The button widget is one of the core widgets. If you press a button, an action is triggered The button widget shares the common widget attributes and the text widget attributes.

The following attributes are additional attributes to common widget attributes and text attributes

Attribute Description
type fixed: needs to be "BUTTON". Capital letters!
autohide 0/1: If the button text is empty on creation time, the button is disabled (invisible), if autohide is "1"
picturenormal The picture to show, if the button is not pressed. You have to give the name of the picture file including the full path. You should use variables to provide the path to your picture file.
picturepressed The picture to show, if the button is pressed. You have to give the name of the picture file including the full path. You should use variables to provide the path to your picture file.
picturedisabled Reserved for future extension

There is a convinience function for defining pictures: If the picturenormal ends with an asterix "*", the strings " normal" and "pressed" will be added to define the full standard and the full pressed picture file name.

Below you see an example for a button widget

<element name='Button Channel Up' type='BUTTON' posx='%5' posy='of:bottom:Anchor Gap Media Circle' width='%20' height='of:width:self' picturenormal='button round*' action='Send Page Up' fontsize='%h50'  caption='icon:osd_next' />

Some examples for buttons (taken from the silver_hires skin)

Normal Pressed
⚠️ **GitHub.com Fallback** ⚠️