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
For the yellow rectangles with action I'm using
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?
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
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
@ 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 ADJUSTbecause 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
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite