FW_SayText error

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

FW_SayText error

Post by Silvio.Falconi »

Compiling a procedure with the fwh release April/May 2019 I have an error with FW_SayText

Image

in fact, a number was printed in the blue spot

on source I made :

//FW_SayText( ::hDCOut, cText, aRect, cAlign, oFont, nClrText, nClrBack )

oBtn[1]:bPainted := { |hDC| FW_DrawImage( hDC, ".\bitmaps\ombrellone.bmp", { 2, 1, 124, 62 } ), ;
FW_SayText( hDC, str(nOmbrellone1), { 7, 45, 98, 75 },,oBold2, CLR_BLUE, CLR_BLUE),;
FW_SayText( hDC, cPrice, { 117, 91, 95, 155 },,oBold, CLR_HRED, CLR_YELLOW),;
FW_SayText( hDC, ggiorni, { 115, 1, 95, 45 },,oBold, CLR_CYAN, CLR_YELLOW )}

any solution please?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: FW_SayText error

Post by ukoenig »

Silvio,
oBtn[1]:bPainted := { |hDC| FW_DrawImage( hDC, ".\bitmaps\ombrellone.bmp", { 2, 1, 124, 62 } ), ;
FW_SayText( hDC, str(nOmbrellone1), { 7, 45, 98, 75 },,oBold2, CLR_BLUE, CLR_BLUE),;
FW_SayText( hDC, cPrice, { 117, 91, 95, 155 },,oBold, CLR_HRED, CLR_YELLOW),;
FW_SayText( hDC, ggiorni, { 115, 1, 95, 45 },,oBold, CLR_CYAN, CLR_YELLOW )}
FW_SayText( hDC, str(nOmbrellone1), { 7, 45, 98, 75 },,oBold2, CLR_BLUE, CLR_BLUE),; :?:

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
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW_SayText error

Post by Silvio.Falconi »

Uwe, I made
oBtn[1]:bPainted := { |hDC| FW_DrawImage( hDC, ".\bitmaps\ombrellone.bmp", { 2, 1, 124, 62 } ), ;
FW_SayText( hDC, str(nOmbrellone1), { 7, 45, 98, 75 },,oBold2, CLR_BLACK, CLR_BLUE),;
FW_SayText( hDC, cPrice, { 117, 91, 95, 155 },,oBold, CLR_HRED, CLR_YELLOW),;
FW_SayText( hDC, ggiorni, { 115, 1, 95, 45 },,oBold, CLR_CYAN, CLR_YELLOW )}

and it is the same

Image

if I made
FW_SayText( hDC, str(nOmbrellone1), { 7, 45, 98, 75 },,oBold2, CLR_BLACK, ),;

I see this ( see the first)

Image
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply