IMAGE_PARAM_TOGGLE_SWITCH
Active element enabling the user to toggle between two values of a parameter, whether the button is pushed or not.
Attributes brief detailed show all inherited
Example
This element is similar to IMAGE_PARAM_BUTTON in a way, but behaves differently. When you press the mouse it sets parameter to its max value, when you release the mouse button, the param value is set to its min value.
- <!-- create demo param -->
- <PARAM id="demo_param" min="0" max="10" default="0" />
- <!-- toggle min/max values of param on mouse button up/down -->
- <IMAGE_PARAM_TOGGLE_SWITCH param_id="demo_param" image="$PLUGIN_DATA_PATH$/Skins/Modern-Ext/help.png" cursor="system::hand" image_scaling="2" id="ipts1" />
- <!-- text value of a param -->
- <PARAM_TEXT_CONTROL param_id="demo_param" />
- <!-- see when control is pushed -->
- <PARAM_TEXT param_id="ipts1.pushed" />

For this example we used graphics from the default BCA skin, there are three files for each state of the control.

For a similar mouse behaviour but without an image see INVISIBLE_PARAM_TOGGLE_SWITCH.
Comments
Please, authorize to view and post comments.