WPCubed Product Support

CPAttr - New Way of doing it?

What way should I do the following in v5?

with WPRichText1 do
   CPPosition := 0;
   repeat 
      CPAttr^.Style := [afsBold];
   until not CPMoveNext;
   Refresh;
 end;

Thanks in advance.

#1 ♥ 0
9.3k Views 2 users read 1 min
support

Hi,

WPRichText1.SelectAll;
WPRichText1.CurrAttr.AddStyle([afsBold]);

would do this.

Julian

#2 ♥ 0
This category is archived. No new posts are possible.