Dimensioni monitor (non risoluzione)

Moderator: Enrico Maria Giordano

Dimensioni monitor (non risoluzione)

Postby Romeo » Tue Jan 09, 2018 4:45 pm

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

Grazie
Romeo
 
Posts: 263
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: Dimensioni monitor (non risoluzione)

Postby cnavarro » Tue Jan 09, 2018 6:20 pm

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 )

 
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Dimensioni monitor (non risoluzione)

Postby Romeo » Wed Jan 10, 2018 4:03 pm

It gives me NOT correct data !

Example, i use a monitor 19 " wide, it gives me 21.77 (?)
Romeo
 
Posts: 263
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)


Return to All products support

Who is online

Users browsing this forum: No registered users and 1 guest