For text positions in text function such as textmodel::insert, the current table is used.
For text positions in text function such as textmodel::insert, the current table is used.
If the function expects a length specification after the position, the value of this parameter is ignored.
The selection is not evaluable in text in overset
Insert text at start of the current text selection:
int selStart; : textmodel::selection (&selStart); textmodel::insert ("Mein Text", selStart);
If you have to insert more than one piece of text, you have to move the insert point by your own.
Recalculation of text position after text changes:
int selStart; int oldLen = textmodel::fulllength ();
textmodel::selection (&selStart); textmodel::insert ("Mein Text", selStart);
selStart = selStart + textmodel::fulllength () - oldLen; oldLen = textmodel::fulllength (); textmodel::insert ("Mein 2. Text", selStart);
Alphabetic index HTML hierarchy of classes or Java