by 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
-
Jimmy
-
- Posts: 1699
- Joined: Thu Sep 05, 2019 5:32 am
- Location: Hamburg, Germany
by Natter » Fri Apr 14, 2023 8:51 am
Is that what you mean ?
GetTextWidth(NIL, "calculate", oFont:hFont)
-
Natter
-
- Posts: 1182
- Joined: Mon May 14, 2007 9:49 am
by Antonio Linares » Fri Apr 14, 2023 8:54 am
Dear Jimmy,
@ 200, 200 SAY ... PIXEL
Not sure what you mean
-
Antonio Linares
- Site Admin
-
- Posts: 41858
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
by Jimmy » Fri Apr 14, 2023 9:28 am
hi Antonio,
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
-
Jimmy
-
- Posts: 1699
- Joined: Thu Sep 05, 2019 5:32 am
- Location: Hamburg, Germany
by 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
-
Antonio Linares
- Site Admin
-
- Posts: 41858
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
by 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
-
Jimmy
-
- Posts: 1699
- Joined: Thu Sep 05, 2019 5:32 am
- Location: Hamburg, Germany
Return to FiveWin for Harbour/xHarbour
Who is online
Users browsing this forum: Google [Bot], Jimmy and 60 guests