TRichViewEdit - Highlighting Text
Posted: Wed Mar 06, 2013 5:47 pm
Assume I have a paragraph of text and it is a single Item. I place the caret at the start of some line, I use the down arrow key to highlight some whole lines of text.
At this point the caret is at the start of a non-highlighted line of text. All the highlighted text is in the lines above the caret.
I now change the paragraph style and text style of the highlighted block.
The highlighted block changes correctly, but the remainder of the item (from the current caret position to the end of this Item) takes on the new paragraph style.
So basically the new paragraph style is being applied up to the end of the Item and not the end of the highlighted block. The text style is applied correctly.
If I highlight the text and leave the caret at the end of the previous line then it's OK.
Can this be fixed?
At this point the caret is at the start of a non-highlighted line of text. All the highlighted text is in the lines above the caret.
I now change the paragraph style and text style of the highlighted block.
The highlighted block changes correctly, but the remainder of the item (from the current caret position to the end of this Item) takes on the new paragraph style.
So basically the new paragraph style is being applied up to the end of the Item and not the end of the highlighted block. The text style is applied correctly.
If I highlight the text and leave the caret at the end of the previous line then it's OK.
Can this be fixed?