Orientation Screen PDA

Post Reply
rasptty
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Orientation Screen PDA

Post by rasptty »

Existe alguma forma de sabermos se o PDA está em Landscape ou Portrait ?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
rasptty
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Post by rasptty »

Obrigado é super simples,
Post Reply