FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TPrinter:Say() text color doesn't reset itself
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TPrinter:Say() text color doesn't reset itself
Posted: Fri Mar 24, 2006 01:50 PM
Is it expected? The second line of text should not be red in my opinion:

#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
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
Re: TPrinter:Say() text color doesn't reset itself
Posted: Fri Mar 24, 2006 04:04 PM

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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: TPrinter:Say() text color doesn't reset itself
Posted: Fri Mar 24, 2006 04:35 PM

Ok, I agree.

EMG

Continue the discussion