FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour none PIXEL calculation
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
none PIXEL calculation
Posted: Fri Apr 14, 2023 07:35 AM
hi,

how to "calculate"
Code (fw): Select all Collapse
@ 2,2 SAY
to use PIXEL Option :?:
greeting,

Jimmy
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: none PIXEL calculation
Posted: Fri Apr 14, 2023 08:51 AM

Is that what you mean ?

GetTextWidth(NIL, "calculate", oFont:hFont)

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: none PIXEL calculation
Posted: Fri Apr 14, 2023 08:54 AM

Dear Jimmy,

@ 200, 200 SAY ... PIXEL

Not sure what you mean

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: none PIXEL calculation
Posted: Fri Apr 14, 2023 09:28 AM
hi Antonio,
Antonio Linares wrote:
Code (fw): Select all Collapse
@ 200, 200 SAY ... PIXEL
thx for Answer

so
Code (fw): Select all Collapse
@ 0.01, 0.01 SAY ...
are same as
Code (fw): Select all Collapse
@ 1, 1 SAY ... PIXEL
100 : 1 that is easy
greeting,

Jimmy
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: none PIXEL calculation
Posted: Fri Apr 14, 2023 09:45 AM

Dear Jimmy,

It was just an example. Here you have the values that FWH really uses:

FWH\include\constant.ch

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: none PIXEL calculation
Posted: Fri Apr 14, 2023 10:56 AM
hi Antonio,
Antonio Linares wrote:FWH\include\constant.ch
ok, now understand

it depend on Control which *_CHARPIX_H and *_CHARPIX_W to use
Code (fw): Select all Collapse
// Say
#define SAY_CHARPIX_H   15
#define SAY_CHARPIX_W    6
so
Code (fw): Select all Collapse
@ 1, 2 SAY
are
Code (fw): Select all Collapse
@ 1*SAY_CHARPIX_W, 2*SAY_CHARPIX_H SAY ... PIXEL
right :?:
greeting,

Jimmy
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: none PIXEL calculation
Posted: Fri Apr 14, 2023 11:09 AM
correct! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion