Check for screen size. Is possible?

Check for screen size. Is possible?

Postby xVar » Tue Feb 24, 2009 12:31 pm

Hi everybody!

I make my "first aplication", and probe run on PC device.
All work.

But my device have screen lager than device emulator, and some controls like smaller.
For example browse control have white area on bottom of screen.
Can I test my device for screen size in any way?

Regards.
Andrej.
xVar
 
Posts: 35
Joined: Mon Jan 19, 2009 9:14 am

Re: Check for screen size. Is possible?

Postby Antonio Linares » Tue Feb 24, 2009 12:58 pm

Andrej,

Please try these values:

GetSysMetrics( 0 )
GetSysMetrics( 1 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Check for screen size. Is possible?

Postby xVar » Wed Feb 25, 2009 7:44 am

Thanks!

I wil try this.

Regards.

Andrej.
xVar
 
Posts: 35
Joined: Mon Jan 19, 2009 9:14 am

Re: Check for screen size. Is possible?

Postby xVar » Thu Feb 26, 2009 7:41 am

It's work.

But system tray in WinCE 5 is smaller than system tray in lastest versions of WinCE.
Can I check for OS version ?

Regards.
Andrej
xVar
 
Posts: 35
Joined: Mon Jan 19, 2009 9:14 am

Re: Check for screen size. Is possible?

Postby Antonio Linares » Thu Feb 26, 2009 11:07 am

Andrej,

Code: Select all  Expand view

#include "FWCE.ch"

function Main()

   local oWnd
   
   DEFINE WINDOW oWnd TITLE "Version"
   
   @ 9, 2 BUTTON "Version" ;
      SIZE 210, 30 ACTION ShowVersion()

   ACTIVATE WINDOW oWnd
   
return nil  

function ShowVersion()

   local aVersion := GetVersion()
   
   MsgInfo( Str( aVersion[ 1 ] ) )
   MsgInfo( Str( aVersion[ 2 ] ) )
   MsgInfo( Str( aVersion[ 3 ] ) )
   MsgInfo( Str( aVersion[ 4 ] ) )
   
return nil            
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Check for screen size. Is possible?

Postby xVar » Thu Feb 26, 2009 11:13 am

Thanks Antonio!
Saludos :)
Andrej.
xVar
 
Posts: 35
Joined: Mon Jan 19, 2009 9:14 am


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 12 guests