facebook

scrolling a text area : howto ?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #334279 Reply

    schb
    Member

    using an iPad:

    (1)
    i have a screen with a text area where every now and then i add a log line at the bottom.
    * when it reaches the bottom it should automatically scroll up to always show the last lines.
    * by finger movements (gesture) i would like to scroll up and down this text area.

    i tried to enlarge both the text area and the panel that contains it but it did not work.

    do you have a solution ?

    thanks again
    schb

    #334394

    schb
    Member

    i now found a way to scroll the scroll pane that contains the text area.

    (1) is there a way to scroll just the text within the text area ?

    (2) is there a way to select the text (or parts if it) within the text area and then copy&paste it into some other iPad app ?

    thanks
    peter

    #334427

    support-michael
    Keymaster

    Hi Peter,

    >i have a screen with a text area where every now and then i add a log line at the bottom.
    * when it reaches the bottom it should automatically scroll up to always show the last lines.

    See the following screenshot and .mobi file of a simple example. The button when clicked adds seconds portion of the current date/time to the bottom of the TextArea, e.g., new Date().getSeconds() See attachment textarea-scroll.png
    See attachment textarea-scroll.mobi

    >* by finger movements (gesture) i would like to scroll up and down this text area.

    If your TextArea is placed on a scrolling panel (i.e., Vertical Scroller property is enabled) it can be difficult to touch scroll its contents. This is due to contention between the Panel’s scroller and the TextArea scroller. We have implemented specially handling internally for this scenario. On iOS devices TextArea/Panel scrolling seems to be less of a problem but I recommend you test it across your target devices.

    >(2) is there a way to select the text (or parts if it) within the text area and then copy&paste it into some other iPad app ?

    Yes, I used extended touch in the example above on my iphone5 to activate the select dialog and mark a region of text in the TextArea.

    I hope this helps with your project

    Attachments:
    You must be logged in to view attached files.
    #334583

    schb
    Member

    hi wayne,

    thank you for your helpful support !

    but what do you mean with:

    “Yes, I used extended touch in the example above on my iphone5 to activate the select dialog and mark a region of text in the TextArea” ??

    how do i select “extended touch” ?
    is this an option to be selected for an app ?

    thanks again
    peter

    #334587

    Max87
    Member

    I think Wayne means, that you tap in some edit box/text area/etc(keyboard shows up), then you tap again until magnifier shows up and then ajust your select area and tap on Copy button… This is native iOS function how to select text. I tried to copy text from my app into notes and it works OK.

    #334589

    schb
    Member

    That’s exactly what i’m trying to do. Unfortunately it does Not work.
    As my Text area just Shows Log-Info it’s read-only … Might this be the reason why it isn’t selectable ?

    Schb

    #334590

    Max87
    Member

    Yes, i think that’s the reason.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: scrolling a text area : howto ?

You must be logged in to post in the forum log in