Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Slider handle
Started by sabir.ahmed59 Feb 11 2013 06:01 PM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sabir.ahmed59

[GLOBAL: userInfoPane.html]
sabir.ahmed59
  • Enthusiast

  • 75 posts
  • Corona SDK

Hi,
I am using slider in my project and want to replace the slider handle image in listener
method but getting error.
Any help will be appreciate?

Here is code:
sliderListener = function( event)    local sliderVal = event.value    local sliderObj = event.target    if sliderVal > 20 then         sliderObj.handle = "sliderHandleGood.png"    endend


Thanks,

uid: 75428 topic_id: 35827 reply_id: 335827


[TOPIC: post.html]
#2

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

Changing a slider handle image after construction is unsupported.

You would have to destroy the slider, create a new one with the required handle then set it's initial value to event.value.

uid: 84637 topic_id: 35827 reply_id: 142633


[TOPIC: post.html]
#3

sabir.ahmed59

[GLOBAL: userInfoPane.html]
sabir.ahmed59
  • Enthusiast

  • 75 posts
  • Corona SDK

Thanks Danny,
I'll do it and let you know.
uid: 75428 topic_id: 35827 reply_id: 142706


[TOPIC: post.html]
#4

sabir.ahmed59

[GLOBAL: userInfoPane.html]
sabir.ahmed59
  • Enthusiast

  • 75 posts
  • Corona SDK

Thanks Danny,
I'll do it and let you know.
uid: 75428 topic_id: 35827 reply_id: 142706



[topic_controls]
[/topic_controls]