TPrinter:Say() text color doesn't reset itself

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

TPrinter:Say() text color doesn't reset itself

Post by Enrico Maria Giordano »

Is it expected? The second line of text should not be red in my opinion:

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oPrn, oFnt

    PRINT oPrn PREVIEW
        DEFINE FONT oFnt NAME "Arial" SIZE 0, -12 OF oPrn

        PAGE
            oPrn:Say( 100, 100, "This is a test", oFnt, , CLR_HRED )
            oPrn:Say( 500, 100, "This is a test", oFnt )
        ENDPAGE
    ENDPRINT

    RELEASE FONT oFnt

    RETURN NIL
EMG
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: TPrinter:Say() text color doesn't reset itself

Post by E. Bartzokas »

Enrico,
It's been that way since 16-bit.
I hope it's not changed because several of my programs use this concept or retaining the last color until changed again.

Just my opinion of course...

Kind regards
Evans
Post Reply