Dear Klaus,
I have a long text with lots of lines separated by CRLF. I want to bring start of a line in the middle of the edittext, so that it will be visible as a whole.
I tried your code
EditText1.SelectionStart = EditText1.Text.Lenght.
Unfortunately, this code brings the beginning of the line at the end of the edit text. Therefore, if the line is long, the rest of the line is not visible.
Is there another way to overcome this problem.
Thanks in advance for your valuable help.
Best regards.
PS: In fact, I need a way to select some text in edittext and set its backgound to another color. The richstring library only sets the textcolor.
A code such as
edittext1.selstart=x
edittext1.sellength=y
edittext1.selcolor=colors.red
edittext1.selbackcolor=colors.yellow
would be extremely usable.
PS: This edittext will be read only.