TAdvRichEditor and ClearSelection() issue

If I have a some words selected in the TAdvRichEditor and call the ClearSelection() method, the selection is cleared. That's right and that's what it's supposed to do. But the FromElement property is nulled aswell even if the caret appears to be over an element. I need to move the caret one step forward or backward to let the FromElement to "reflesh".

Is this normal behavior or is it a bug?

If you do ClearSelection(), there is no more selected text, hence, FromElement should not longer have a value. You can get the element where the caret is via AdvRichEditor.Caret.Element

Thanks for the tip Bruno. That was what I needed to continue and solve an issue I was facing.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.