Page 1 of 1

Dimensioni monitor (non risoluzione)

PostPosted: Tue Jan 09, 2018 4:45 pm
by Romeo
Ciao
Esiste una funzione che mi dice i pollici del monitor sul quale sto lavorando ?

Grazie

Re: Dimensioni monitor (non risoluzione)

PostPosted: Tue Jan 09, 2018 6:20 pm
by cnavarro
Yes, use:
Functions of Fivewin

Code: Select all  Expand view

? ScreenSize(), ScreenSize( .T. )   // mm, inches
 


or

Code: Select all  Expand view

#define HORZSIZE           4
#define VERTSIZE           6

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

 

Re: Dimensioni monitor (non risoluzione)

PostPosted: Wed Jan 10, 2018 4:03 pm
by Romeo
It gives me NOT correct data !

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

Re: Dimensioni monitor (non risoluzione)

PostPosted: Thu May 03, 2018 3:30 pm
by nageswaragunupudi
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.