Page 1 of 1

BeginItemModify/EndItemModify/Change do not work when TSRichViewEdit in a TFrame

Posted: Wed Jul 27, 2022 1:06 am
by wolf1860
My TSRichViewEdit is placed on a TFrame,It can not update my editing result (with code) immediately As Topic.And it will scroll to the document's top after calling TSrichViewEdit.Format .I want to keep the view position after edit, Any suggestions?

Re: BeginItemModify/EndItemModify/Change do not work when TSRichViewEdit in a TFrame

Posted: Wed Jul 27, 2022 8:47 am
by Sergey Tkachenko
Sorry, what code exactly scrolls to the top?
If Format, it is because Format moves the caret to the beginning of the document, and the editor shows the caret.

Re: BeginItemModify/EndItemModify/Change do not work when TSRichViewEdit in a TFrame

Posted: Mon Aug 01, 2022 4:48 am
by wolf1860
I wonder whether there is a method to update the document's content partially after editing. or I must scroll to the item manually after calling the editor format method.Thanks a lot:)

Re: BeginItemModify/EndItemModify/Change do not work when TSRichViewEdit in a TFrame

Posted: Mon Aug 01, 2022 8:35 am
by Sergey Tkachenko
If you call editing methods, they automatically update only modified paragraphs, no need to call Format.
What editing operations do you perform?

Re: BeginItemModify/EndItemModify/Change do not work when TSRichViewEdit in a TFrame

Posted: Fri Aug 05, 2022 3:25 pm
by wolf1860
I avoid this problem:) Thank u:)