iOS Question InputTemplate Multiline and Selected Text

SFE

Member
Licensed User
I have the need for basic input from the user. In some instances the text gets a little long. The InputTemplate dialog meets the needs except for when the text gets a little long. I saw that Erel had posted a solution for B4A using EditText (see below). In B4i I don't know how to reference EditText so I can use it or is there a different solution for B4i.

One additional question. When I have some text already entered into the InputTemplate, when I show it the text is selected. How would I have it put the cursor at the end of the pre-entered text and not have anything selected?

More than likely I am just being dense and need someone to point that out :).

Thanks

B4X:
    InputTemplate.Initialize
    InputTemplate.TextField1.TextColor = xui.Color_Black
    InputTemplate.TextField1.SetTextAlignment("TOP", "LEFT")
    InputTemplate.mBase.Height = 200dip
    Dim et As EditText = InputTemplate.TextField1
    et.SingleLine = False
    et.Height = 150dip
 

SFE

Member
Licensed User
I have switched over to using B4XPrefDialog which is really nice but brings up some new questions which I will post.
 
Upvote 0
Top