WPCubed Product Support

Change Color fonts in execution time

as I make to change the color of the source in execution time, for example:

Line 1
Line 2
line 3
Line 4

I want to locate the cursor in line 3, being that in the impression linha1 and line 2 would leave in the white color?

Thanks

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

Hi,

You can use the property CurrAttr to change the color of the text which is about to be written (the writing mode) or the color of the text which is currently selected.

WPRichText1.CurrAttr.Color := WPRichText1.CurrAttr.ColorToNr(clRed, true);

Julian

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