Specifically, my enumerated parameter defined in script does not respect the default value I specify for it and does not provide access to a popup menu. On the other hand, a param defined in the KUIML does both of these things. Note that I am including params.as from LetiMix to simplify the addition of params.
Please have a look at my minimal example below and let me know whether this is expected and how I may overcome it. Note that the value for Custom Param is 1 and clicking the icon beside it does nothing, whereas the value of GUI Param defaults to 3 and clicking the icon displays a popup menu of valid enum values.
test.cxx
Code: Select all
#include "../library/params.as"
int inst_trigger;
void initialize() {
inst_trigger = ip("param0", "1;2;3;4;5", "3");
}
Code: Select all
<SKIN>
<ROW>
<TEXT value="Custom Param:" />
<PARAM_TEXT param_id="custom_param0" />
<IMAGE_PARAM_MENU_BUTTON param_id="custom_param0" image="$THEME_PATH$/toolbar/zoom.png" opaque_mouse_mask="true" cursor="system::hand" />
</ROW>
<ROW>
<PARAM id="gui_param0" type="enumeration" enum_values="1;2;3;4;5" default="3" />
<TEXT value="GUI Param:" />
<PARAM_TEXT param_id="gui_param0" />
<IMAGE_PARAM_MENU_BUTTON param_id="gui_param0" image="$THEME_PATH$/toolbar/zoom.png" opaque_mouse_mask="true" cursor="system::hand" />
</ROW>
</SKIN>

