We kept aside all other works and did extensive tests. The samples we produced above prove that the alleged problem does NOT exist with SayText() whether used as a command or direct call to the method.And, most importantly, the problem DOES EXIST WITH SAYTEXT( )
We tested again. This is a sample to show that use of color with SayText() does NOT change the color default for the method Say()What I have found is if you use @SayText( ) it does change the color default for @Say( ).
Code: Select all
#include "fivewin.ch"
function Main()
local oPrn
local oBrushRed, oBrushGrn
local oFont, oFont2, oFont3, oFont4
DEFINE BRUSH oBrushRed COLOR CLR_RED
DEFINE BRUSH oBrushGrn COLOR CLR_HGREEN
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-20 BOLD OF oPrn
DEFINE FONT oFont2 NAME "VERDANA" SIZE 0,-14 OF oPrn
DEFINE FONT oFont3 NAME "Segoe UI" SIZE 0,-16 OF oPrn
DEFINE FONT oFont4 NAME "ARIAL NARROW" SIZE 0,-10 OF oPrn
PAGE
oPrn:Say( 500,400, "Say(): Default color", oFont )
oPrn:Say( 800,400, "Say(): CLR_HRED" , oFont,, CLR_HRED )
oPrn:Say( 1100,400, "Say(): Default color", oFont )
oPrn:Say( 1400,400, "Say(): Default color", oFont )
oPrn:SayText( 1700, 400, "SayText(): BLUE on GREEN", 3000,200, oFont, , CLR_BLUE, oBrushGrn )
oPrn:Say( 2000,400, "Say(): Default color", oFont )
oPrn:SayText( 2300, 400, "SayText(): YELLOW on HRED", 3000,200, oFont, , CLR_YELLOW, oBrushRed )
oPrn:Say( 2600,400, "Say(): Default color", oFont )
oPrn:SayText( 2900, 400, "SayText(): DEFAULT COLOR", 3000,200, oFont )
oPrn:Say( 3200,400, "Say(): Default color", oFont )
oPrn:Say( 3500,400, "Say(): " + FWVERSION, oFont )
ENDPAGE
ENDPRINT
RELEASE FONT oFont, oFont2, oFont3
RELEASE BRUSH oBrushRed, oBrushGrn
return nil
Please let us know if we are missing something.