Thank you,
that's my solution.
Lothar
Thank you,
that's my solution.
Lothar
Hi,
thank you for your support.
In TDBWPRichText Version WPTools 4 I can't find GlobalFontSize.
What to do?
Lothar
Hi Julian,
I added to my DefaultFont "Loaded" but nothing changed.
Meanwhile I tried some work arounds, but that doesn't work as well.
So do you have any other sugestion for keeping FontSize the same after saving?
Thank you
Lothar
Thank you for your patience.
It works now with SetPosition and TopOffset.
Because after saving it changed the FontSize (I asked about that 10 days ago, and your answer with DefaultFont and Loaded didn't help) I had to reset the FontSize again. And because I used SetPosition and TopOffset in between with the smaller FontSize, of course it didn't work always.
So, thank you
Lothar
I'm sory, I have posted my question in WPtools 5 instead of WPtools 4.
Is that the reason why your CPPosition doesn't work the way I need it?
I just would like that the same part of text is shown after saving the whole text. Now after saving it often shows a different part of the text depending of length and position.
thank you
Lothar
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;
Hi Julian,
your help sounds really good. My only problem now ist, that my TDBWPRichText has no OnClear and also no DefaultAtr, only DefaultFont.
May be it's because of the Version? I have:
WPTools Version 4
Thank you
Lothar
Hi,
a TDBWPRichText is connected to TDataSource and to TBetterADODataSet.
When I do a:
BetterAdoDatasetContent.requery([eoAsyncFetchNonBlocking]);
the text is saved, but the FontSize is set to 10, no matter how I set it before or how DefaultFont.Size is.
Has anyone a hint for me?
Lothar