10-14-2011 01:26 AM
i have created a custom listfield which is in verticalfieldmanager and i have a button. when the button is clicked the listfield has to rotate similar to a slot machine which we can find in casino's. How can i do this any suggestions.
10-14-2011 06:02 AM
I would have looked at a SpinBox rather than a ListField if that was what I wanted.
To make the ListField spin you could use .setSelectedIndex and have a Thread that keeps changing this. Alternatively you can keep changing the scroll position on the Manager. But personally if I have to do this, I would write a special Field that just does this, and I would have a Thread that I start when the button is clicked that updated paint in some way.
What are you trying to achieve?
10-14-2011 07:08 AM
Thanks for the response peter,
i want to make a field in that i want to place list of items(for ex: VenueName) when the user the user clicks the button the list has to spin and has to focus on item randomly.
FYI this thing what i m tring to do is refference from "urbanspoon" application.