PARAM_TEXT_CONTROL
Active element that displays text and allows the user to modify the parameter value with the mouse and the keys. The mouse and keyboard controls are the same as for a knob. See User Experience.
Attributes brief detailed show all inherited
Examples
The graphical properties of this widget are almost the same as the PARAM_TEXT widget except that you can also specify different colors depending on mouse movements, so you can also refer to the PARAM_TEXT section for examples.
Here's an example of showing various text_color options as well as few other attributes.
- <!-- create a param -->
- <PARAM id="A" min="-20" max="20" default="0" unit="dB" />
- <!-- edit value of a param with background to see the area -->
- <WIDGET background_color="#DDDDDD">
- <PARAM_TEXT_CONTROL id="ptc_a" param_id="A" content="{value} {unit}" value_format=" 5.1" font_face="Courier" font_size="18" text_color="#000000" text_color_disabled="#999999" text_color_hover="#009900" text_color_focus="#0000DD" text_color_pushed="#FF3333" pixel_range="300" orientation="vertical" enabled="true" _cursor="system::size_v" _auto_focus="false" />
- </WIDGET>
- <!-- view and change some of the attributes -->
- <COLUMN spacing="3" width="300" inner_h_align="left" v_margin="10">
- <PARAM_TEXT param_id="ptc_a.focus" content="focus: {value}" value_format="0.0" />
- <PARAM_TEXT param_id="ptc_a.mouse_over" content="mouse_over: {value}" value_format="0.0" />
- <PARAM_TEXT param_id="ptc_a.mouse_down" content="mouse_down: {value}" value_format="0.0" />
- <PARAM_TEXT_CONTROL param_id="ptc_a.enabled" content="enabled: {value}" value_format="0.0" />
- </COLUMN>

Comments
Please, authorize to view and post comments.