TRichViewEdit - Checkpoints
Posted: Mon Feb 25, 2013 4:34 pm
Two questions
Question 1:
So I can do this to add a checkpoint at the bottom of the current text:
s := InputDialog.Value;
rve.AddNamedCheckpointEx('C' + s, true);
rve.AddFmt('[' + s + '] ', [0], TEXT_STYLE, ARA_STYLE);
rve.Format;
But how do I "Insert" the checkpoint into some existing text e.g.
Before:
This is some text
More text
After:
This is some text
[1]
More text
Question 2:
After Inserting or adding the checkpoint how do I position the caret to the end of my newly added line? I want the caret after the ]. Is this possible?
Question 1:
So I can do this to add a checkpoint at the bottom of the current text:
s := InputDialog.Value;
rve.AddNamedCheckpointEx('C' + s, true);
rve.AddFmt('[' + s + '] ', [0], TEXT_STYLE, ARA_STYLE);
rve.Format;
But how do I "Insert" the checkpoint into some existing text e.g.
Before:
This is some text
More text
After:
This is some text
[1]
More text
Question 2:
After Inserting or adding the checkpoint how do I position the caret to the end of my newly added line? I want the caret after the ]. Is this possible?