disable items with a popup

Hi,

I am creating a button which shows an overlay in the background then a dialog box which has multiple options to choose from.

When clicking the button I have created the rectangle with an alpha to cover the screen, but the items underneath it such as scrollviews and buttons still work. Is there anything you can do to actually disable the activity of those items until I close the dialog box?

Also is there anything built in to do dialogs? The native alerts wont give me the options I need.

Thanks.

i think, you should add a touch event listener to the overlay, and in the listener you should write "return true".

Nice 1, works perfectly...

I had tried the:

1
display.getCurrentStage():setFocus(popupGroup)

Well, I am not sure what fails, but you could put transition to groups like any other display object.

views:1221 update:2011/9/27 8:54:05
corona forums © 2003-2011