FW_SayText error

FW_SayText error

Postby Silvio.Falconi » Tue Jul 16, 2019 4:10 pm

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?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm

Re: FW_SayText error

Postby ukoenig » Wed Jul 17, 2019 3:38 pm

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: FW_SayText error

Postby Silvio.Falconi » Wed Jul 17, 2019 4:15 pm

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests