screen resolution

screen resolution

Postby hag » Wed Sep 02, 2009 2:41 am

Is there a function that indicates what resolution a screen is using?
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: screen resolution

Postby mmercado » Wed Sep 02, 2009 6:42 am

Hello Harvey:
hag wrote:Is there a function that indicates what resolution a screen is using?

Here you are two ways to get the screen resolution in pixels:
Code: Select all  Expand view
#include "FiveWin.ch"

Function Main()

   Local nWidth, nHeight, ;
         aRes := ScrResolution()

   ? nWidth  := aRes[ 1 ]
   ? nHeight := aRes[ 2 ]
   ? nWidth  := GetSysMetrics( 0 )
   ? nHeight := GetSysMetrics( 1 )

Return Nil

Best regards.

Manuel Mercado.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: screen resolution

Postby hag » Wed Sep 02, 2009 3:29 pm

Thanks for the help. I'll try it later today.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests

cron