I have faced some severe problems using the TAdvRichEditor own toolbars so I'm deploying my own version (see => Access violation with AdvRichEditor toolbars in DLL - #11 by Jaraiz_Gonzalez_Senador1).
I was able to achieve the basic format functionality pretty fast using some TAdvRichEditor functions (SetSelectionBold, SetSelectionTextColor, ...). All seemed straight forward until I found that just as there is a function to add a bullet (unsorted) list (SetSellectionBullet), there doesn't seem to be one to add an ordered (numbered) list. Is there any function to do it? What would be the best way?
And just another question. After adding some formating (let's say bold font to a selected text) I want to clear the selection. This can be done with ClearSelection() method but after that, caret remains at the selection start position and not on its end as it should be. Can I fix that behaviour some way?.
Thanks and regards.
The parameter for SetSelectionBullet determines the type of the bullet:
We applied a fix for the ClearSelection issue and this fix will be included in the update.
Thanks @brunofierens for the SetSelectionBullet hint.
I have download and installed the last version (Aug 1st ver 10.8.1.0 - AdvRichEditor version 22.214.171.124) and the ClearSelection() is still behaving as before just like no fix has been applied.
ClearSelection fix should be in TMS VCL UI Pack v10.8.1.0
If a problem persists, can you please provide sample source project and/or exact steps how to reproduce.
Steps to reproduce.
Create a new TForm and add a TAdvRichEditor, and a TSpeedButton
Add the following lines to the button OnClick event
Run the project. Write some text in the editor, select some words and click the speedbutton. The problem should be clearly visible.
I've attached a screen capture video (I zipped it 'cos the system didn't let me upload the video) so you can check for yourself that the problem is still unsolved.
ice_video_20220803-173941.zip (384.0 KB)
It is not ClearSelection() that was causing this but SetSelectionBold().
We applied an improvement for this that will be included in the next update.
Ok. Thank you. I will wait to the next release then.
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.