Problem TfolderEx with SAY from resource

Problem TfolderEx with SAY from resource

Postby ukoenig » Thu May 28, 2015 10:56 am

Hello, there seems to be a problem with TFolderEx
using SAY from RESOURCE.
It is NOT possible, to define a background-color.

From CODE it works

Image

FUNCTION F_PAGE2( oFld1 )
LOCAL oSay1, oGet1, cText1 := "Testing GET-colors"
LOCAL cText2 := "Testing SAY - background-color"

@ 30, 20 GET oGet1 VAR cText1 SIZE 120, 15 OF oFld1:aDialogs[ 2 ] PIXEL FONT oFont1 UPDATE
oGet1:SetColor( 16777215, 255 )
@ 70, 20 SAY oSay1 VAR cText2 SIZE 200, 15 OF oFld1:aDialogs[ 2 ] PIXEL FONT oFont1 UPDATE
oSay1:SetColor( 16777215, 255 )

RETURN NIL


The same from RESOURCE

Image

FUNCTION F_PAGE5( oFld2 )
LOCAL oSay1, oGet1, cText1 := "Testing GET-colors"
LOCAL cText2 := "Testing SAY - background-color"

REDEFINE GET oGet1 VAR cText1 ID 200 OF oFld2:aDialogs[ 2 ] FONT oFont1 UPDATE
oGet1:SetColor( 16777215, 255 )

REDEFINE SAY oSay1 VAR cText2 ID 300 OF oFld2:aDialogs[ 2 ] FONT oFont1 UPDATE
oSay1:SetColor( 16777215, 255 )


RETURN NIL

best regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Problem TfolderEx with SAY from resource

Postby Rick Lipkin » Fri May 29, 2015 1:00 pm

Uwe

Looking back at some of my code .. I could not get Say to display both background and foreground in two colors and I had to settle for using Get with the READONLY Clause
Code: Select all  Expand view

REDEFINE GET oSay1 var cSay1   ID 174 of oUSERS COLOR CLR_WHITE, CLR_GREEN  READONLY
 


This might Work :
Code: Select all  Expand view

REDEFINE SAY oSay15 /* use form */    ID 128 OF oGrps UPDATE
                oSay15:SetFont( oFontB )
                oSay15:SetColor(CLR_WHITE,CLR_GREEN )
 


Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2618
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 83 guests