FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index All products support Dimensioni monitor (non risoluzione)
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Dimensioni monitor (non risoluzione)
Posted: Tue Jan 09, 2018 04:45 PM

Ciao
Esiste una funzione che mi dice i pollici del monitor sul quale sto lavorando ?

Grazie

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Dimensioni monitor (non risoluzione)
Posted: Tue Jan 09, 2018 06:20 PM
Yes, use:
Functions of Fivewin

Code (fw): Select all Collapse
? ScreenSize(), ScreenSize( .T. )   // mm, inches


or

Code (fw): Select all Collapse
#define HORZSIZE           4
#define VERTSIZE           6

? ( ( ( GetDeviceCaps( hDCM, HORZSIZE ) ^ 2 + GetDeviceCaps( hDCM, VERTSIZE ) ^ 2 ) ^ 0.5 ) / 25.4 )
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: Dimensioni monitor (non risoluzione)
Posted: Wed Jan 10, 2018 04:03 PM

It gives me NOT correct data !

Example, i use a monitor 19 " wide, it gives me 21.77 (?)

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Dimensioni monitor (non risoluzione)
Posted: Thu May 03, 2018 03:30 PM

21.77 is the diagonal size of the monitor.

We normally express TV and Monitor sizes in diagonal size.

For example, when we say 54" TV, we mean 54" diagonal size.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion