INVISIBLE_PARAM_MENU_BUTTON
Active invisible element that displays a menu containing values of the parameter when clicked.
Attributes brief detailed show all inherited
See the PARAM_TEXT widget for text formatting options used in the menu.
Examples
Make a dropdown menu to select parameter value.

- <!-- enum param -->
- <PARAM id="color_chooser" type="enumeration" enum_values="Red;Green;Blue" />
- <!-- selector with dropdown icon (present in LM Skin) -->
- <LAYER_STACK h_align="left">
- <ROW>
- <PARAM_TEXT param_id="color_chooser" />
- <SVG_ICON_DROPDOWN />
- </ROW>
- <INVISIBLE_PARAM_MENU_BUTTON param_id="color_chooser" cursor="system::hand" width="100%" height="100%" />
- </LAYER_STACK>
Another example.

Another example

- <!-- our test param -->
- <PARAM id="my_color" type="enumeration" enum_values="red;green;blue" />
- <TEXT value=" (INVISIBLE_PARAM_MENU_BUTTON)" background_color="#fad9c1" height="30">
- <INVISIBLE_PARAM_MENU_BUTTON param_id="my_color" cursor="system::hand" width="100%" height="100%" />
- </TEXT>
- <!-- row of colored squares -->
- <ROW spacing="5">
- <WIDGET id="w_red" background_color="#ee4035" width="20" height="20" />
- <WIDGET id="w_green" background_color="#7bc043" width="20" height="20" />
- <WIDGET id="w_blue" background_color="#0392cf" width="20" height="20" />
- <PARAM_LINK from="my_color" to="w_red.opacity" formula="0.1+(x==0)" />
- <PARAM_LINK from="my_color" to="w_green.opacity" formula="0.1+(x==1)" />
- <PARAM_LINK from="my_color" to="w_blue.opacity" formula="0.1+(x==2)" />
- <!-- text value -->
- <PARAM_TEXT param_id="my_color" content="Color: {text_value} ({value})" value_format="0.0" />
- </ROW>
Note, that if you're using a parameter created in the PnS DSP ("generic params"), you may need to set the positions_count value (like positions_count="2") in the INVISIBLE_PARAM_MENU_BUTTON element.
To create complex menus see POPUP_MENU. See more similar examples in IMAGE_PARAM_MENU_BUTTON.
Comments
Please, authorize to view and post comments.