How to find out the user screen size ?

How to find out the user screen size ?

Postby HunterEC » Wed Nov 26, 2008 8:47 am

I need to display a dialog at the bottom right corner of the screen. How can I find out the screen's MAXROW(), MAXCOL() ? With this values I can create the dialog from MAXROW() - rows needed, MAXCOL() - cols needed TO MAXROW() - 0, MAXCOL() - 0. Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby Antonio Linares » Wed Nov 26, 2008 10:05 am

Gustavo,

Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   local oDlg

   DEFINE DIALOG oDlg

   ACTIVATE DIALOG oDlg ;
      ON INIT ( oDlg:SetSize( GetSysMetrics( 0 ), GetSysMetrics( 1 ) ), oDlg:Center() )

return nil
regards, saludos

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

Postby HunterEC » Wed Nov 26, 2008 3:58 pm

Antonio:

How many pixels compromise a single text position ?
I looked at the Window & Dialog classes and I can't find the SetSize method. Where it is documented ? Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 107 guests