FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC window resolution
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
window resolution
Posted: Mon Aug 21, 2006 08:09 AM

Hello Antonio,

Ownd:nvertres() and OWND:nhorzRes() are not active in fwppc.

Is there a way to know the vertical height and horizontal ?

Thanks

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: window resolution
Posted: Mon Aug 21, 2006 08:46 AM
This is a working sample:

#include "Fwce.ch"


#define SM_CXSCREEN 0
#define SM_CYSCREEN 1


FUNCTION MAIN()

    LOCAL oWnd

    DEFINE WINDOW oWnd

    @ 1, 1 BUTTON "Show sizes";
           SIZE 120, 30;
           ACTION ( MSGINFO( GETSYSMETRICS( SM_CXSCREEN ) ),;
                    MSGINFO( GETSYSMETRICS( SM_CYSCREEN ) ) )

    ACTIVATE WINDOW oWnd

    RETURN NIL


EMG
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: window resolution
Posted: Mon Aug 21, 2006 08:49 AM
EnricoMaria wrote:This is a working sample:

#include "Fwce.ch"


#define SM_CXSCREEN 0
#define SM_CYSCREEN 1


FUNCTION MAIN()

    LOCAL oWnd

    DEFINE WINDOW oWnd

    @ 1, 1 BUTTON "Show sizes";
           SIZE 120, 30;
           ACTION ( MSGINFO( GETSYSMETRICS( SM_CXSCREEN ) ),;
                    MSGINFO( GETSYSMETRICS( SM_CYSCREEN ) ) )

    ACTIVATE WINDOW oWnd

    RETURN NIL


EMG


Thanks Enrico

I did not think about getsysmetrics !
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
window resolution
Posted: Mon Aug 21, 2006 08:57 AM

Richard,

There is a new FWPPC build that you may already download that implements those methods and some new features.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion