Page 1 of 1
window resolution
Posted: Mon Aug 21, 2006 8:09 am
by Richard Chidiak
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
Re: window resolution
Posted: Mon Aug 21, 2006 8:46 am
by Enrico Maria Giordano
This is a working sample:
Code: Select all | Expand
#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
Re: window resolution
Posted: Mon Aug 21, 2006 8:49 am
by Richard Chidiak
EnricoMaria wrote:This is a working sample:
Code: Select all | Expand
#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 !
Posted: Mon Aug 21, 2006 8:57 am
by Antonio Linares
Richard,
There is a new FWPPC build that you may already download that implements those methods and some new features.