Dimensioni monitor (non risoluzione)

Moderator: Enrico Maria Giordano

Post Reply
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Dimensioni monitor (non risoluzione)

Post by Romeo »

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

Grazie
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Dimensioni monitor (non risoluzione)

Post by cnavarro »

Yes, use:
Functions of Fivewin

Code: Select all

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

Code: Select all

#define HORZSIZE           4
#define VERTSIZE           6

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

 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: Dimensioni monitor (non risoluzione)

Post by Romeo »

It gives me NOT correct data !

Example, i use a monitor 19 " wide, it gives me 21.77 (?)
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Dimensioni monitor (non risoluzione)

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply