FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetSysMetrics or ....
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
GetSysMetrics or ....
Posted: Thu May 29, 2025 08:12 AM

for a touch procedure it is better to use

nScreenWidth := ScreenWidth()

nScreenHeight := ScreenHeight()

or

nScreenWidth := GetSysMetrics(0)

nScreenHeight := GetSysMetrics(1)

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GetSysMetrics or ....
Posted: Thu May 29, 2025 08:16 AM

define SM_CXFULLSCREEN 16

define SM_CYFULLSCREEN 17

function ScreenWidth()

return GetSysMetrics( SM_CXFULLSCREEN )

function ScreenHeight()

return GetSysMetrics( SM_CYFULLSCREEN )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: GetSysMetrics or ....
Posted: Fri May 30, 2025 08:45 PM

Also on tablet?

I have many problems

Because if i made a touch on tablet 1280x800 then on pc i have all moved and viceversa , and I not want make different exe for each monitor configuration

this thing reminds me of the old clipper when we went crazy when we had to make prints for the different dot matrix printers we never guessed the right coordinates, then we saved ourselves with the prints in Windows

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion