showMessageDialog to wait until button (buttonText) is pressed

422 views
Skip to first unread message

RodriRego

unread,
Jan 4, 2015, 7:32:55 AM1/4/15
to mitappinv...@googlegroups.com
I want the screen to change when the user clicks on showMessageDialog's button. How do I make this happen?

Enis

unread,
Jan 4, 2015, 7:52:09 AM1/4/15
to mitappinv...@googlegroups.com
You handle this in the AfterChoosing block for the notifier and change screens like any other screen...
____________________________________________________________________

http://twodogapps.com?page_id=686

For my App Inventor Tips, visit TwoDogApps.com by clicking here!


RodriRego

unread,
Jan 4, 2015, 8:14:53 AM1/4/15
to mitappinv...@googlegroups.com
I did it like in the print, it is not workin :/
Captura de tela 2015-01-04 12.08.52.png

Enis

unread,
Jan 4, 2015, 8:35:19 AM1/4/15
to
Right... sorry, glanced too fast over attachment.

You're not asking to make a choice in that dialog box.  So The AfterChoosing is never firing.  Either do a dialog box with a yes, no answer, or move the open screen block to the button click block, under the notifier block.

Taifun

unread,
Jan 4, 2015, 9:38:36 AM1/4/15
to mitappinv...@googlegroups.com
as Enis said, you have to use a Notifier.ShowChooseDialog
if you only want to display "OK" as button text, just use an empty text block as second button text
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Reply all
Reply to author
Forward
0 new messages