Announcement

Collapse
No announcement yet.

how to dynamically set the max and min value of a Slider

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • RahulS
    started a topic how to dynamically set the max and min value of a Slider

    how to dynamically set the max and min value of a Slider

    Hi,
    i am developing a list box using a slider. Here i want to dynamically change the max and min value of the slider. i don't know how to set these parameters programmatically. if anybody knows please tell me..Any help will greatly be appreciated. thanks..

  • RahulS
    replied


    Thanks for your reply moderator....

    Leave a comment:


  • ESPsupport
    replied


    You can't set the values dynamically as the slider is 'built' into uSD at compile time.

    But that shouldn't stop you making it appear dynamic.

    Consider the slider itself, say the slider is 100 pixels from min to max, then there are only 100 'different' positions the slider can have. Yet you can generate it with 200 positions, what will be on uSD is 200 images of which every second one is the same. So, in reality you could have created a 100 position slider and used code in your program to make it look like a 200 position slider.

    You need to do the same to make it dynamic, create a slider using the actual number of pixels from min to max and then scale it in your program to whatever size you require

    Leave a comment:

Working...
X