FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to find out the user screen size ?
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
How to find out the user screen size ?
Posted: Wed Nov 26, 2008 08: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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to find out the user screen size ?
Posted: Wed Nov 26, 2008 10:05 AM
Gustavo,

#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
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
How to find out the user screen size ?
Posted: Wed Nov 26, 2008 03: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.

Continue the discussion