INVISIBLE_PARAM_BUTTON
Active and invisible element that can be clicked to increment the value. It is similar to the IMAGE_PARAM_BUTTON, but with no visible graphical element. It is particularly useful to make some graphical parts of the user interface clickable, without having to design an image button.
The control supports several keyboard shortcuts and mouse click: Each time the user clicks on the button, the parameter is incremented to next value (the number of possible values depending on the number of images). For more information, see User Experience.
Attributes brief detailed show all inherited
Example
Create a widget that changes background color when clicked.
- <!-- create demo param -->
- <PARAM id="demo_param" min="0" max="3" default="0" />
- <!-- create a widget with invisible param button in it -->
- <WIDGET id="w1" background_color="#003399">
- <INVISIBLE_PARAM_BUTTON id="ipb1" param_id="demo_param" cursor="system::hand" width="40" height="40" positions_count="4" />
- </WIDGET>
- <!-- change widget background red color intensity depending on param value -->
- <PARAM_LINK from="demo_param" to="w1.background_color.r" formula="x/3" />
- <!-- display/control param as text -->
- <PARAM_TEXT_CONTROL param_id="demo_param" />

Also see IMAGE_PARAM_BUTTON for examples.
Comments
Please, authorize to view and post comments.