No
txt.setEditable(false);
txt.setEnabled(true);
txt.getStyle().setAlignment(LEFT);
txt.setSingleLineTextArea(false);
User chooses Edit button to change the txt.setEditable(true);
The behaviour I am looking for is when the TextArea is not editable.
I would think the behaviour I am looking would be common, other than a
series of Buttons, is there another Object that can contain Text and
provide me an index into the text when touched?
Thoughts?
Regards
On Monday, December 16, 2019 at 9:44:30 PM UTC-5, Shai Almog wrote:
> Is this text area editable?
> If it's editable then that's a problem. A text area is a very special
> component that transitions between native and lightweight editing. As such
> you would be relying on native behavior and long press is already
> associated with functionality in native text editing.
>
> If not then why use a text area?
> Why not have multiple buttons in flow layout?
> If you want to give users the ability to edit you can just dynamically
> replace one of them with a text field. You can style the whole thing to
> look like one big text area if you want to or you can create a unique UX of
> your own.
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/9756dfa7-71b0-41dd-b797-84d23c9aa2af%40googlegroups.com.