PickerWheel, adding columns after selecting a value...

Is it possible to dynamically add columns after selecting a value from the first column? Start with one column, after selecting a value add one column and possible a third one?

I am looking for an event when a value from an column is selected but I can’t find one…

Regards

Johan

I don’t know of a way to add a column.  But you should be able to collect the value, destroy and recreate the new pickerWheel in one display frame.

Rob

Thanks! Will test that!

But, I am trying to assign an event but I cant get it to work;

pickerWheel:addEventListener( "userInput", sida\_annonsera\_script.pickerWheelAction )

userInput/tap/touch/completion - noting seems to generate an event. I want to catch when the user is done selecting a first value… help?

Event’s don’t work that way.  You can’t make up event types. You have to use events the object supports.  userInput is an event type for native.newTextField() and native.newTextBox().  On top of that widgets generally set their listeners through their constructor and you generally can’t addEventListener like you can display objects.

Finally widget.newPickerWheel() doesn’t support any listeners.  You will need some other button that calls a function that will read the pickerWheel values and then do whatever you want.

Rob

I don’t know of a way to add a column.  But you should be able to collect the value, destroy and recreate the new pickerWheel in one display frame.

Rob

Thanks! Will test that!

But, I am trying to assign an event but I cant get it to work;

pickerWheel:addEventListener( "userInput", sida\_annonsera\_script.pickerWheelAction )

userInput/tap/touch/completion - noting seems to generate an event. I want to catch when the user is done selecting a first value… help?

Event’s don’t work that way.  You can’t make up event types. You have to use events the object supports.  userInput is an event type for native.newTextField() and native.newTextBox().  On top of that widgets generally set their listeners through their constructor and you generally can’t addEventListener like you can display objects.

Finally widget.newPickerWheel() doesn’t support any listeners.  You will need some other button that calls a function that will read the pickerWheel values and then do whatever you want.

Rob