Problem with FW_SayText RESOLVED

Problem with FW_SayText RESOLVED

Postby Silvio.Falconi » Thu Apr 25, 2019 9: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]:bPainted:= { |hDC| FW_SayText( hDC, ltrim(str(nElemento)), { 30, 2, 48, 25 },,oFontOmbrelloni:hFont, CLR_WHITE, nARGB(255,COLOR_ARANCIONE) , .t. ) }

next nx
next ny



Image



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

Image





any solution pls
Last edited by Silvio.Falconi on Thu Apr 25, 2019 5:37 pm, edited 1 time in total.
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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with FW_SayText

Postby karinha » Thu Apr 25, 2019 12:43 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7872
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Problem with FW_SayText

Postby Silvio.Falconi » Thu Apr 25, 2019 1:47 pm

??????????????????????
I ask another question...
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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with FW_SayText

Postby nageswaragunupudi » Thu Apr 25, 2019 1:55 pm

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem with FW_SayText

Postby Silvio.Falconi » Thu Apr 25, 2019 2: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 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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with FW_SayText

Postby nageswaragunupudi » Thu Apr 25, 2019 2: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
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem with FW_SayText

Postby Silvio.Falconi » Thu Apr 25, 2019 2: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

Image


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
Last edited by Silvio.Falconi on Thu Apr 25, 2019 3:08 pm, edited 1 time in total.
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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with FW_SayText

Postby nageswaragunupudi » Thu Apr 25, 2019 3:04 pm

Code: Select all  Expand view  RUN
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
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem with FW_SayText

Postby Silvio.Falconi » Thu Apr 25, 2019 3:27 pm

thanks
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: 7090
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 92 guests