Menu

Slider default value > 100 not working

Help
2016-08-09
2016-12-15
  • Niclas Wolniak

    Niclas Wolniak - 2016-08-09

    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

     
  • Eric Voisard

    Eric Voisard - 2016-12-15

    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...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.