I'm trying to add some styles to the text using:
Code
with frm_ri_prot_ap_editor do begin
WPRichText.Refresh;
WPRichText.Finder.Clear;
WPRichText.Finder.ToStart;
while WPRichText.Finder.Next('uma parte ideal*)') do
WPRichText.Finder.FoundAttr.IncludeStyle(afsUnderline);
WPRichText.Refresh;
end;
Alles anzeigen
With the content of the WPRichText as the following:
01) MARIA ANTONIA JACYNTHO DOS SANTOS PICCAGLI, brasileira, viuva, do lar, portadora do RG/SSP/SP nº e do CPF nº , uma parte ideal equivalente a sessenta por cento (60%);
The bold part is where I'm adding the underline style.
When I run the code, I can see that the style is updated with the Underline option, but the screen is not updated unless I save it to the database and load again.
I tried to refresh with .Refresh, .DelayedReformat and .ReformatAll but none of these seen to update the screen, what am I missing?
PS: Using Delphi 2010 and WPtools 6.