Hi,
After protecting a text that is in the end of the line i can't type any text after text protected, i can't type #13 for new paragraph.
i set WpRichText>protectedPro = [ppProtected,ppAllowEditAtTextEnd,ppDontUseAttrOfProtected]
my code to protect selected text
with WPRichText1 do begin
CurrAttr.AddStyle([afsProtected]);
SetSelPosLen( CPPosition, 0 );
Refresh; SetFocus;
end;
rtf file with problem
http://www.drdsistemas.com/util/wp.rtf
a source code of small project
http://www.drdsistemas.com/util/wp_proj.zip
example:
[Blockierte Grafik: http://www.drdsistemas.com/util/wp.jpg]