Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

widget picker wheel
Started by brian85 Dec 17 2019 07:47 PM

1 reply to this topic
widget
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

brian85

[GLOBAL: userInfoPane.html]
brian85
  • Observer

  • 1 posts
  • Corona SDK

Hello all,

 

I'm attempting to use the widget.newPickerWheel but am having some difficulties understanding how to use it properly. I got it to show up and I get events in the 'onValueSelected' callback, but how do I determine if an item is actually selected or the user is just scrolling. I get the event when the user stops for a second on any item even if they are just looking for the item to select.

 

Should I be putting this control on another popup window with an 'ok' / 'cancel' buttons?

 

Thank you

Brian



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,687 posts
  • Enterprise

Welcome to the forums!

 

On iOS, there is usually a "Done" button. If you have a button like that, you can call one of the widget.newPickerWheel's methods to get the values.

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: widget