FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Orientation Screen PDA
Posts: 88
Joined: Sun May 25, 2008 05:46 PM
Orientation Screen PDA
Posted: Wed Sep 03, 2008 11:12 AM

Existe alguma forma de sabermos se o PDA está em Landscape ou Portrait ?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Orientation Screen PDA
Posted: Wed Sep 03, 2008 01:34 PM
Una manera sencilla sería comparar el ancho y alto de la ventana principal:
if oWnd:nWidth > oWnd:nHeight
   MsgInfo( "landscape" )
else
   MsgInfo( "portrait" )
endif
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 88
Joined: Sun May 25, 2008 05:46 PM
Orientation Screen PDA
Posted: Wed Sep 03, 2008 03:25 PM

Obrigado é super simples,

Continue the discussion