INVISIBLE_PARAM_TOGGLE_SWITCH
Active and invisible element enabling the user to toggle between two values of a parameter. This widget is similar to the IMAGE_PARAM_TOGGLE_SWITCH element, except that it does not display anything.
Attributes brief detailed show all inherited
Examples
A simple on/off toggle to change that parameter from min to max value.
- <!-- create demo param -->
- <PARAM id="demo_param" min="0" max="100" default="0" />
- <!-- create a widget with invisible param toggle switch in it -->
- <WIDGET id="w1" background_color="#003399">
- <INVISIBLE_PARAM_TOGGLE_SWITCH param_id="demo_param" cursor="system::hand" width="40" height="40" />
- </WIDGET>
- <!-- change widget background color depending on param value -->
- <PARAM_LINK from="demo_param" to="w1.background_color.r" formula="x/100" />
- <!-- display/control param as text -->
- <PARAM_TEXT_CONTROL param_id="demo_param" />

Also see IMAGE_PARAM_TOGGLE_SWITCH. For a button see INVISIBLE_PARAM_BUTTON.
Comments
Please, authorize to view and post comments.