FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Background color of TSay
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Background color of TSay
Posted: Wed Oct 02, 2019 12:19 PM

I noticed, that the background color of a say not to change!?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Background color of TSay
Posted: Wed Oct 02, 2019 01:14 PM
Günther,

my test

@ 22, 20 SAY oCSay[1] PROMPT "Window" SIZE 28,12 FONT oFontSys PIXEL
oCSay[1]:SetColor( 0, 255 ) // original

@ 20, 50 GET oCGet[1] VAR cGet[1] SIZE 80, 18 OF oDlg2 COLOR 0, nWColorB UPDATE ;
BITMAP c_Path1 + "Help.bmp" PIXEL ;
ACTION ( nWColorB := ChooseColor( nWColorB ), oCGet[1]:SetColor( , nWColorB ), ;
oCSay[1]:SetColor( 0, nWColorB ), oCSay[1]:Refresh() ) // modified



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.
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Background color of TSay
Posted: Thu Oct 03, 2019 10:56 AM
Uwe, i have used
Code (fw): Select all Collapse
REDEFINE SAY PROMPT "xyz" ID 100 OF oDlg COLOR 0,255

but no background-color of the SAY.
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Background color of TSay
Posted: Thu Oct 03, 2019 11:22 AM
Günther,

if the dialog is defined < transparent >
the background-color of the say will be ignored

if You need a mixture of color and transparent use a normal dialog

REDEFINE SAY PROMPT "xyz" ID 100 OF oDlg COLOR 0,255


REDEFINE SAY oSay1 PROMPT "xyz" ID 100 OF oDlg
oSay1:SetColor( 0, 255 ) // color
or
oSay1:lTransparent := .T. // transparent

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.
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Background color of TSay
Posted: Thu Oct 03, 2019 11:51 AM
Thanks Uwe. I use
Code (fw): Select all Collapse
GRADIENT {{1,color1, color2]}}
for the dialog. This seems also switch to transparent.
Now i use a readonly-get without border.
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Background color of TSay
Posted: Thu Oct 03, 2019 02:53 PM
Code (fw): Select all Collapse
   DEFINE DIALOG oDlg GRADIENT aGrad
   oDlg:lTransparent := .f.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion