Text Box or label for scrolling without keyboard poping

705 views
Skip to first unread message

Bhagavati Kanta Dasa

unread,
Nov 24, 2014, 9:35:57 PM11/24/14
to mitappinv...@googlegroups.com
I have a long text to display on a page where I need scrolling and no keyboard poping up.
If I use label, then it does not have the scrolling (if I am right).. But I want scrolling.
The TextBox with Multi-Line option gives me the scrolling but the keyboard pops up if I touch inside the text.
If I set TextBox.enabled to False, the keyboard stops popping but the text now becomes non-scrollable!
I am new to AI2, if there is any example or help, I will greatly appreciate..
Thanks.
- Raj

SteveJG

unread,
Nov 24, 2014, 10:07:58 PM11/24/14
to mitappinv...@googlegroups.com
There is a tutorial, part of which shows how you can handle long text files with scrolling:  http://appinventorforfun.wordpress.com/   

What you do is place a label on a screen and set the Properties   Scrollable by checking the box.
If you place a label on a Scrollable screen, you can scroll the label.  Set the label Width to Parent and Height to Auto   I believe...



Regards,
Steve

Bhagavati Kanta Dasa

unread,
Nov 25, 2014, 9:38:44 AM11/25/14
to mitappinv...@googlegroups.com
Hi Steve,
Thank you for the quick response..
Unfortunately, I do not see the 'Scrollable' as a property for a label at all..
May be it is something else? I see very limited options for label. Attached is the screen shot..
- Raj
2014-11-25_093800.png

SteveJG

unread,
Nov 25, 2014, 9:57:38 AM11/25/14
to mitappinv...@googlegroups.com
You misunderstood...evidently I was not clear enough.   The Scrollable property is set on the Screen1.    Look for it on the Designer screen under the Properties bin... check the box to activate the Scrollable property for the screen.  

Look at the attached aia....
to get something like this:


If you need paragraph breaks, you have to set the control  'character'  \n   within the text manually.   The \n will not show in the label when the text is rendered.

It is possible to use a TextBox for multi-line stuff but it is an awkward use of the control.   be aware, you do have a block to hide keyboard..

Regards,
Steve
ScrollableTextinLabel.aia

Abraham Getzler

unread,
Nov 25, 2014, 12:25:10 PM11/25/14
to mitappinv...@googlegroups.com
Other options might include either a ListPicker full of text
or a long html media page in a WebViewer.

ABG

Bhagavati Kanta Dasa

unread,
Nov 25, 2014, 2:51:50 PM11/25/14
to mitappinv...@googlegroups.com
Thank you Steve and Abraham..
Yes, now things are working great!

Reply all
Reply to author
Forward
0 new messages