FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Coordinates problem between 7.10 and 16.04
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Coordinates problem between 7.10 and 16.04
Posted: Fri Aug 24, 2018 01:05 PM
Hello,

I'm migrating a program from 7.10 (32bit) to 16.04(64bit).
I notice there os a problem in coordinates beteen the 2 version.

For drawing lines and text, I'm using
Code (fw): Select all Collapse
TextOut( hDCOut, y_cor(y-9), x_cor(x), oRs:fields('inhoud'):Value )
LineTo( hDCOut    , y_cor(inLeft + sx_offset ) ,  x_cor(430 - (inTop + sy_offset ))       , hPen)


For the yellow rectangles with action I'm using
Code (fw): Select all Collapse
@ y_cor(y+4), x_cor(x+48.5 ) BTNBMP metatoetsen[len(metatoetsen)] RESOURCE 'GEEL','GEEL2' PROMPT ct   of oMeta CENTER SIZE x_cor(10),x_cor(13) FONT schermfont action ganaarpunt(text) PIXEL ADJUST

because there is an action to do while clicking.

In the old release I get:

And in the new one

I use the same coordinates for both (x_cor() and y_cor())

As you can see at the top the boxes are a little bit higher than the text, and at the lower ones, they are over the text. The old release was the text always correct.
Is there another solution to have rectangles with actions?
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion