T Tikehan Member Licensed User Longtime User Oct 21, 2012 #1 I am looking for a solution to simulate the ScrollToCaret properties present in windows mobile. My aim is to display a large text in an EditText starting from a string of the text in which I have previously placed the cursor. Thanks to all
I am looking for a solution to simulate the ScrollToCaret properties present in windows mobile. My aim is to display a large text in an EditText starting from a string of the text in which I have previously placed the cursor. Thanks to all
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2012 #2 Have you tried setting the SelectionStart property. If I remember correctly it should scroll the EditText. Upvote 0
Have you tried setting the SelectionStart property. If I remember correctly it should scroll the EditText.
T Tikehan Member Licensed User Longtime User Oct 23, 2012 #3 Erel said: Have you tried setting the SelectionStart property. If I remember correctly it should scroll the EditText. Click to expand... Hi Erel it partially works. In fact, the text at the cursor position is shown at the end of the window instead of at the beginning. the only way I've found is to cut the text before the cursor, but it is a solution that I wanted to avoid Upvote 0
Erel said: Have you tried setting the SelectionStart property. If I remember correctly it should scroll the EditText. Click to expand... Hi Erel it partially works. In fact, the text at the cursor position is shown at the end of the window instead of at the beginning. the only way I've found is to cut the text before the cursor, but it is a solution that I wanted to avoid
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2012 #4 Maybe you can first set SelectionStart to a few characters ahead of the current position and then set the SelectionStart again. You may need to call DoEvents in the middle. Upvote 0
Maybe you can first set SelectionStart to a few characters ahead of the current position and then set the SelectionStart again. You may need to call DoEvents in the middle.
T Tikehan Member Licensed User Longtime User Oct 24, 2012 #5 It works! DoEvents was the solution. Thanks a lot! Upvote 0