Drop down menu selection doable?

I found it in a search, but the link just took me to the general list, hence the question.

I have to build a selection scheme like, or similar to, a drop-down menu.

Is this now possible? Any sample code available?

Basically I want to build a selection scheme to pick year, make, model for a vehicle. After each selection I’ll query a server and build a new selection based on xml data received. The only missing piece is the actual selection scheme.

Any thought/suggestions greatly appreciated. [import]uid: 6547 topic_id: 4151 reply_id: 304151[/import]

i think the only issue is you’d need to add a scrollbar to your page if the list is long. without a mask it would be tricky to put a scrollbar in the drop down list itself.

the other option is to code your own scroller wheel (like the native one) but display this *under* (ie behind) your main page displaygroup, then shift your main content group upwards slightly to display the picker wheel. as your picker list goes upwards it’s graphics will disappear behind your main page displaygroup.

essentially the list elements above “Red 2004” are behind the black panel above it.


[import]uid: 6645 topic_id: 4151 reply_id: 12877[/import]

I agree - the standard “drop down menu” control on iPhone is actually a scroll wheel, of course. I’ve had some success at replicating “iPhone standard controls” by creating a very customised web page and showing that within a web popup control, because that provides a bit more native effect that is possible in the standard Corona API - but you do have to be careful. You could probably simulate a scroll list as in the image in the post above, by using a web page in a transparent web popup.

m [import]uid: 8271 topic_id: 4151 reply_id: 12925[/import]

How can I create a drop down menu?
Do you use the native class for doing it?

Please would you post the code fir creating a drop down menu as I’m unable to find that

Thanks [import]uid: 11038 topic_id: 4151 reply_id: 15396[/import]

I’m finally getting back to Corona for this project, Did some prototyping using a webapp but would really like to build it as an app, especially now that async http is here.

My app will do an http call to get information (years) and the user selects one. Based on that selection I make another http call using the selection as a parameter and I get a list of makes available for that year.
And on it goes. Give the use a selection list and he selects one, give him another list, etc., etc. until I collect year, make, model

In html I do it as series of drop down menus and in iWebKit it turns that into the scroll drum/wheel.

How can I do same/similar in Corona?

Similar to jmp909 but the wheel would only select one item as a time, I.e. year, make model as individual selection as each following is dependent on the previous selection made by the user.

TIA
[import]uid: 6547 topic_id: 4151 reply_id: 19367[/import]

This is my solution:

Here select.zip file.

Description:
by using WebPopup it is possible to create “on the fly” Select object, with the label, text, values and color that you prefere.
You can also choose position and dimension of the “select” area.
This will disappear when you retrieve the chosen value.
Of course the result of your choice will return back to your lua code.
See main.lua file for more information.

bye
pmaxim [import]uid: 2735 topic_id: 4151 reply_id: 19932[/import]

pmaxim, I will test your solution later today but it looks very good and just what I’m looking for. [import]uid: 31262 topic_id: 4151 reply_id: 20470[/import]