Page 1 of 1

Orientation Screen PDA

Posted: Wed Sep 03, 2008 11:12 am
by rasptty
Existe alguma forma de sabermos se o PDA está em Landscape ou Portrait ?

Posted: Wed Sep 03, 2008 1:34 pm
by Antonio Linares
Una manera sencilla sería comparar el ancho y alto de la ventana principal:

Code: Select all

if oWnd:nWidth > oWnd:nHeight
   MsgInfo( "landscape" )
else
   MsgInfo( "portrait" )
endif

Posted: Wed Sep 03, 2008 3:25 pm
by rasptty
Obrigado é super simples,