window resolution

window resolution

Postby Richard Chidiak » Mon Aug 21, 2006 8: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: window resolution

Postby Enrico Maria Giordano » Mon Aug 21, 2006 8:46 am

This is a working sample:

Code: Select all  Expand view  RUN
#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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: window resolution

Postby Richard Chidiak » Mon Aug 21, 2006 8:49 am

EnricoMaria wrote:This is a working sample:

Code: Select all  Expand view  RUN
#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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Mon Aug 21, 2006 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 2 guests

cron