Coordinates problem between 7.10 and 16.04

Coordinates problem between 7.10 and 16.04

Postby Marc Vanzegbroeck » Fri Aug 24, 2018 1: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: Select all  Expand view
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: Select all  Expand view
@ 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:
Image
And in the new one
Image
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 Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

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