Hi,
when I save the text with requery I want to keep CursoPosition and Textplacement in the frame the same. With GetPosition and SetPosition the cursor stays and with TopOffset the text stays in the same position. BUT when I use both, it often doesn't work.
Does someone has an idea how to solve this?
Thanks
Lothar
Source code:
TopOffs := WPRichTextContent.TopOffset;
WPRichTextContent.GetPosition(pos, lin, par, pos_in_par);
BetterAdoDatasetContent.ParamByName['Quellenangabe_ID'].value := Value;
BetterAdoDatasetContent.requery([eoAsyncFetchNonBlocking]);
if dxPageControlEditor.ActivePage = dxTabSheetSource then
begin
LoadSource;
end;
WPRichTextContent.SetPosition(pos, lin, par, pos_in_par);
WPRichTextContent.TopOffset := TopOffs;