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

    • Offizieller Beitrag

    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