Disferente
Programmer
Is there any way of relating selstart in a rtftextbox to where in the textrtf property it is?
What I want to do is to change the background color of the text where the cursor (selstart) is. The only way for me to know where to change the color is in the rtfcode, starting with \sub and ending with \nosupersub.
The only way I have found so far is to loop back decreasing selstart and checking selrtf for the startchar and then loopingn forwards increasing sellength.
I would rather not change the selstart and sellength at all.
What I want to do is to change the background color of the text where the cursor (selstart) is. The only way for me to know where to change the color is in the rtfcode, starting with \sub and ending with \nosupersub.
The only way I have found so far is to loop back decreasing selstart and checking selrtf for the startchar and then loopingn forwards increasing sellength.
I would rather not change the selstart and sellength at all.