Window Coordinates

Window Coordinates

Postby byron.hopp » Fri Apr 01, 2016 9:36 pm

Does anybody know the differences between the coordinates of "Define Window", and "oWnd:Move".
I am trying to set the windows to the same position after saving the coordinates as:

oWnd:CoorsUpdate()

hIni:nLeft := ROUND(oWnd:nLEFT / WIN_CHARPIX_W,0)
hIni:nWidth := ROUND((oWnd:nRIGHT - oWnd:nLEFT) / WIN_CHARPIX_W,0)
hIni:nTop := ROUND(oWnd:nTOP/WIN_CHARPIX_H,0)
hIni:nHeight := ROUND((oWnd:nBOTTOM - oWnd:nTOP) / WIN_CHARPIX_H,0)

I can't get it to the same size using oWnd:Move, where I am trying to call "oWnd:Move" in the "On Init" clause of the "Activate Windows" command.

Is there a conversion I need to pull this off?

Thanks,

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 123 guests