FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with FW_SayText RESOLVED
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem with FW_SayText RESOLVED
Posted: Thu Apr 25, 2019 09:34 AM
For nY := 1 to TOTY
For nX := 1 To TOTX
cSettore:= aSettori[nY,nX]
nElemento:= aNumeri[nY,nX]
cTypeRoom := aData[nY,nX]
nStatus:= 5

aBmps[nY,nX]:cargo := {nElemento,cSettore,cTypeRoom,nStatus }

aBmps[nY,nX]:= { |hDC| FW_SayText( hDC, ltrim(str(nElemento)), { 30, 2, 48, 25 },,oFontOmbrelloni:hFont, CLR_WHITE, nARGB(255,COLOR_ARANCIONE) , .t. ) }

next nx
next ny







write all zero as you can see why ?

I check nElemento and this variable have a number it take from an array aNumeri

and on the array aNumeri there are number as you can see here







any solution pls
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 12:43 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 01:47 PM

??????????????????????
I ask another question...

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 01:55 PM

You need to keep changing this rect { 30, 2, 48, 25 } for each iteration

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 02:16 PM
I not understood

I mean the text to write

str(nElemento) nElemento is a number and I take it from an array aNumeri you can see on picture ( xbrowse)

you sad the arect but arect is the coordinates ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 02:39 PM

They are the coordinates for writing the text.
Do you write all the numbers in the same coordinates, i.e., do you write all numbers at the same place?
For each nx,ny you need to change the coordinates.

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 02:54 PM
yes I write it on the same coordinates for each btnbmp


If I set

aBmps[nY,nX]:ccaption := ALLTRIM(STR(nElemento))

I see the numbers on btnbmp as you can see here but as cCaption




I not Understood with old fwh it run ok , is there something modified ?

on this your sample viewtopic.php?f=3&t=35666&p=212422&hilit=+FW_SayText#p212422

the coordinates are the same
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 03:04 PM
Code (fw): Select all Collapse
aBmps[nY,nX]:bPainted:= { |hDC,ps,oBtn| FW_SayText( hDC, ;
   ltrim( str( oBtn:Cargo[ 1 ] ) ), ;
   { 30, 2, 48, 25 },,oFontOmbrelloni, CLR_WHITE, nARGB(255,COLOR_ARANCIONE) , .t. ) }
Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with FW_SayText
Posted: Thu Apr 25, 2019 03:27 PM

thanks

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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

Continue the discussion