im currently creating a menu, where a parameter should be adjustable via a slider. The slider has a maxvalue of 450 and the default value should be 250. So, when i set the default value with the -value parameter to 250, it will automatically set the value to 100 on the screen. Values in the range of 1 - 100 working as expected. Can someone varify this problem?
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had a similar issue for -maxlength of alpha menu items which is limited to 10 chars by default.
Apparently, maxlength was not taken into consideration after the menu_add_item function and my value string which was longer was truncated. I had to set the max length (and re-set my string) with a separate menu_set_item after the initial menu_add_item.
I verified with the slider menu item and the same parameters as you and I got the same behavior as you so I guess we can expect similar issues with other menu items: not all options are taken into consideration at the time a menu item is instanciated. They might need to be set afterwards...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
im currently creating a menu, where a parameter should be adjustable via a slider. The slider has a maxvalue of 450 and the default value should be 250. So, when i set the default value with the -value parameter to 250, it will automatically set the value to 100 on the screen. Values in the range of 1 - 100 working as expected. Can someone varify this problem?
Regards
I had a similar issue for -maxlength of alpha menu items which is limited to 10 chars by default.
Apparently, maxlength was not taken into consideration after the menu_add_item function and my value string which was longer was truncated. I had to set the max length (and re-set my string) with a separate menu_set_item after the initial menu_add_item.
I verified with the slider menu item and the same parameters as you and I got the same behavior as you so I guess we can expect similar issues with other menu items: not all options are taken into consideration at the time a menu item is instanciated. They might need to be set afterwards...