IMAGE_PARAM_MENU_BUTTON
Active element that displays a menu containing values of the parameter when clicked.
Attributes brief detailed show all inherited
Examples
Here's an example with a regular and "enumerated" params.
- <!-- create demo params -->
- <PARAM id="demo_param" min="0" max="10" default="2" value_format="0.1" unit="dB" />
- <PARAM id="demo_enum_param" type="enumeration" enum_values="Red;Green;Blue;Orange" default="3"/>
- <!-- start layout -->
- <TABLE h_spacing="10" v_spacing="4">
- <!-- display some param values as a menu -->
- <IMAGE_PARAM_MENU_BUTTON param_id="demo_param" positions_count="5" reverse_mouse_wheel="false" image="$PLUGIN_DATA_PATH$/Skins/Modern-Theme/toolbar/menu.png" opaque_mouse_mask="true" cursor="system::hand" />
- <!-- display enum_values in a menu -->
- <IMAGE_PARAM_MENU_BUTTON param_id="demo_enum_param" reverse_mouse_wheel="false" image="$PLUGIN_DATA_PATH$/Skins/Modern-Theme/toolbar/menu.png" image_pushed="$PLUGIN_DATA_PATH$/Skins/Modern-Theme/toolbar/menu_hover.png" opaque_mouse_mask="true" cursor="system::hand" />
- </TABLE_ROW>
- <!-- display/control values as text -->
- <PARAM_TEXT_CONTROL param_id="demo_param" min_width="70" />
- <PARAM_TEXT_CONTROL param_id="demo_enum_param" content="{text_value} ({value})" value_format="0.0" min_width="90" />
- </TABLE_ROW>
- </TABLE>

You could also use INVISIBLE_PARAM_MENU_BUTTON to achieve the same behaviour but without an image.
Comments
Please, authorize to view and post comments.