Hi,
I am looking for a way to create a popup dialog box, where a user can enter text (isEditable).
The closest way i found is using the “newTextField()”, but not shown as a popup box.
Anyone knows whether this is possible ?
Thanks
Hi,
I am looking for a way to create a popup dialog box, where a user can enter text (isEditable).
The closest way i found is using the “newTextField()”, but not shown as a popup box.
Anyone knows whether this is possible ?
Thanks
You can not use the native popup like that.
You can make you own custom popup. If you are using Storyboard, create a scene that looks like your popup with newTextField etc. When a popup is to be shown load it as an overlay.
Thanks jon. It works, but I have a problem removing the overlay.
I tried “purgeScene()” and also “removeScene()” after keying in the text field, but it does not remove the overlay scene.
The only way i found to remove it is to call “gotoScene()”. But the problem with calling “gotoScene()” is that it removes the older scene (which called the overlay scene).
Any ideas on this ?
You can use storyboard.hideOverlay() and any open overlay will be closed. Or do you mean how to remove from memory?
Thanks! That worked. I couldn’t really get the SDK explaination on this.
You can not use the native popup like that.
You can make you own custom popup. If you are using Storyboard, create a scene that looks like your popup with newTextField etc. When a popup is to be shown load it as an overlay.
Thanks jon. It works, but I have a problem removing the overlay.
I tried “purgeScene()” and also “removeScene()” after keying in the text field, but it does not remove the overlay scene.
The only way i found to remove it is to call “gotoScene()”. But the problem with calling “gotoScene()” is that it removes the older scene (which called the overlay scene).
Any ideas on this ?
You can use storyboard.hideOverlay() and any open overlay will be closed. Or do you mean how to remove from memory?
Thanks! That worked. I couldn’t really get the SDK explaination on this.
works fine but is there a way to reduce the size of the overlay … i.e. it should not completely overlap my previous scene !!!
I hope you are using composer (instead of the old storyboard).
To create a proper overlay, please read this : http://docs.coronalabs.com/api/library/composer/showOverlay.html
You can draw anything like a normal scene (page), but it will act as an overlay (will be shown above the current scene)
yeah I’m using composer … so it seems I’ll have to use a Image then !!! anyways thnx
works fine but is there a way to reduce the size of the overlay … i.e. it should not completely overlap my previous scene !!!
I hope you are using composer (instead of the old storyboard).
To create a proper overlay, please read this : http://docs.coronalabs.com/api/library/composer/showOverlay.html
You can draw anything like a normal scene (page), but it will act as an overlay (will be shown above the current scene)
yeah I’m using composer … so it seems I’ll have to use a Image then !!! anyways thnx