Cursor Alignment

bishmedia

Member
Licensed User
Longtime User
I have a large multiline text box
When i run the App and click on the text box the cursor always aligns center left, how can i make it align center top like any normal document??
 

stevel05

Expert
Licensed User
Longtime User
If you've created the EditText via the designer, click the + next to Text Style, in there you can see Vertical Alignment, set that to Top.

If you've created it in code you need to use it's gravity method similar to:

B4X:
EditText1.Gravity=Gravity.TOP
 
Upvote 0
Top