Scroll to the top or bottom of the screen

100 views
Skip to first unread message

Eric McDonald

unread,
Feb 6, 2015, 2:25:38 PM2/6/15
to mitappinv...@googlegroups.com
I'm looking for a way to have the app scroll all the way to the top or bottom of the page when a button is pressed.

For example, the user puts in a lot of information, presses the "send" button, and I want a message to appear showing a confirmation that the information was sent.  Since I don't see a way to make a popup appear (which would be cool, too), I opted to have a blank line change into text saying "Sent."  The problem is that if I put this below the button, the user won't see it.  If I could make the button also cause the screen to scroll to the bottom, that would be super.

Similarly, a "erase all fields" button would clear all entries (easy) and then scroll back to the top of the screen to start over (impossible?).

Is it currently possible to accomplish any of the tasks I've described?

Enis

unread,
Feb 6, 2015, 4:16:39 PM2/6/15
to mitappinv...@googlegroups.com
No, not at this time Eric.

Fairly soon, textboxes will be able to set focus, so you would be able to bounce to a text box like that, but presently it's not available.
____________________________________________________________________

http://twodogapps.com?page_id=686

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


SteveJG

unread,
Feb 6, 2015, 6:16:17 PM2/6/15
to mitappinv...@googlegroups.com
You can do part of what you want to do but not how you describe.  AI2 can provide a notification.   Place a Notifier on your designer, where you want a response,
use the  call Notifier1.ShowAlert notice    and put a Text blolk with a message at the notice puzzle piece.

Ghica

unread,
Feb 7, 2015, 8:21:13 AM2/7/15
to mitappinv...@googlegroups.com
You can show a confirmation with a notifier.
Cheers, Ghica
Reply all
Reply to author
Forward
0 new messages