onComplete in NewPickerWheel

Hi Corona,

isnt there something like a onComplete for the newPickerWheel??

I like to call a function immediatly after the user choosed a new value, without that he would have to

click a seperate button like (“OK” or “Take value”)

Just scrolling the wheel and than I would like to have the result immediatly.

I tried by a     pickerWheel:addEventListener(“touch”,confirm_bc2)        

but that does not work.

Any Ideas??? 

Thanks

Chris

That is a feature I would recommend adding by taking the Open source version of the widgets and extending them for this need.

Did you come across the newEditField widget developed by Atanas? The demo app comes with a modified pickerwheel which bonds to the newEditField and it does have onClose and onScroll events. Take a look at that demo if you like. 

Hi Ksan,

thanks for ur post, Where can i find that newEditField Widget from Atanas?? Any Link

Would be great if it works and there is a onClose and onScroll Event.

Greets

Chris

You need to register (free) on http://widgetstown.com/ in order to get access to the widget documentation and samples. The widget itself is on Atanas’s GitHub page which is also linked from the widgetstown.com . Good luck. 

Thanks,

I downloaded the GitHub Source , but i cant find any onScroll function  for the Pickerwheel

I looked in   the demo Picker.lua  also in widget_pickerWheel.lua !!

Any Ideas?

Greets

Chris

Look into scene-pickerlist.lua -> createScene -> onClick -> Inside you will see how onScroll and onClosePicker is implemented.

sorry KSan,

now i feel stupid. :slight_smile:

There is no scene-pickerlist.lua

I downloaded the latest version from github!

What I found in the widget_pickerwheel was a                

“if view._onScroll then”

but dont know how to use it for now :slight_smile:

The demo file can be downloaded from widgetstown.com . Simply click on your member name on the site and go to Downloads. You will see a download for the widget.newEditField. That should give you a demo file called editfields. Its a storyboard based demo with each tab showing you different ways you can use the newEditField. Pickerlist is one of those tabs in there. Let me know if you can’t get the demo file. 

That is a feature I would recommend adding by taking the Open source version of the widgets and extending them for this need.

Did you come across the newEditField widget developed by Atanas? The demo app comes with a modified pickerwheel which bonds to the newEditField and it does have onClose and onScroll events. Take a look at that demo if you like. 

Hi Ksan,

thanks for ur post, Where can i find that newEditField Widget from Atanas?? Any Link

Would be great if it works and there is a onClose and onScroll Event.

Greets

Chris

You need to register (free) on http://widgetstown.com/ in order to get access to the widget documentation and samples. The widget itself is on Atanas’s GitHub page which is also linked from the widgetstown.com . Good luck. 

Thanks,

I downloaded the GitHub Source , but i cant find any onScroll function  for the Pickerwheel

I looked in   the demo Picker.lua  also in widget_pickerWheel.lua !!

Any Ideas?

Greets

Chris

Look into scene-pickerlist.lua -> createScene -> onClick -> Inside you will see how onScroll and onClosePicker is implemented.

sorry KSan,

now i feel stupid. :slight_smile:

There is no scene-pickerlist.lua

I downloaded the latest version from github!

What I found in the widget_pickerwheel was a                

“if view._onScroll then”

but dont know how to use it for now :slight_smile:

The demo file can be downloaded from widgetstown.com . Simply click on your member name on the site and go to Downloads. You will see a download for the widget.newEditField. That should give you a demo file called editfields. Its a storyboard based demo with each tab showing you different ways you can use the newEditField. Pickerlist is one of those tabs in there. Let me know if you can’t get the demo file.