Page 1 of 1

FW_SayText error

Posted: Tue Jul 16, 2019 4:10 pm
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?

Re: FW_SayText error

Posted: Wed Jul 17, 2019 3:38 pm
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 :?:

Re: FW_SayText error

Posted: Wed Jul 17, 2019 4:15 pm
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