@Osman SOYKURT I want that my cursor position changes when I touch anywhere in the text. If I touch in the middle of the text it appears in the middle in the text and then I can edit text. And I want to ask another question. Is it possible to know a coordinate of writeable text?
@Osman SOYKURT also I use textArea.setWideTextAction(WIDE_TEXT_WORDWRAP_ELLIPSIS_AFTER_SPACE); function. Is it possible to know when text goes to next line?
We don't have a particular trigger for that in our API, but this is easily doable with an handleTickEvent() function combined with a getTextHeight() function. You first get the text heigh of your text when your application starts and then compare the the current height with the original height
void Screen1View::handleTickEvent()
{
currentSize = textArea1.getTextHeight();
if (currentSize > originalSize)
{
// Added one line
originalSize = currentSize;
}
else if (currentSize < originalSize)
{
// Removed one line
originalSize = currentSize;
}
else if (currentSize == originalSize)
{
// still same line number
}
}