none PIXEL calculation

none PIXEL calculation

Postby Jimmy » Fri Apr 14, 2023 7:35 am

hi,

how to "calculate"
Code: Select all  Expand view
@ 2,2 SAY

to use PIXEL Option :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: none PIXEL calculation

Postby Natter » Fri Apr 14, 2023 8:51 am

Is that what you mean ?

GetTextWidth(NIL, "calculate", oFont:hFont)
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: none PIXEL calculation

Postby Antonio Linares » Fri Apr 14, 2023 8:54 am

Dear Jimmy,

@ 200, 200 SAY ... PIXEL

Not sure what you mean
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: none PIXEL calculation

Postby Jimmy » Fri Apr 14, 2023 9:28 am

hi Antonio,
Antonio Linares wrote:
Code: Select all  Expand view
@ 200, 200 SAY ... PIXEL

thx for Answer

so
Code: Select all  Expand view
@ 0.01, 0.01 SAY ...

are same as
Code: Select all  Expand view
@ 1, 1 SAY ... PIXEL


100 : 1 that is easy
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: none PIXEL calculation

Postby Antonio Linares » Fri Apr 14, 2023 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: none PIXEL calculation

Postby Jimmy » 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: Select all  Expand view
// Say
#define SAY_CHARPIX_H   15
#define SAY_CHARPIX_W    6


so
Code: Select all  Expand view
@ 1, 2 SAY

are
Code: Select all  Expand view
@ 1*SAY_CHARPIX_W, 2*SAY_CHARPIX_H SAY ... PIXEL

right :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: none PIXEL calculation

Postby Antonio Linares » Fri Apr 14, 2023 11:09 am

correct! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 42 guests