Orientation Screen PDA

Orientation Screen PDA

Postby rasptty » Wed Sep 03, 2008 11:12 am

Existe alguma forma de sabermos se o PDA está em Landscape ou Portrait ?
rasptty
 
Posts: 88
Joined: Sun May 25, 2008 5:46 pm

Postby Antonio Linares » Wed Sep 03, 2008 1:34 pm

Una manera sencilla sería comparar el ancho y alto de la ventana principal:
Code: Select all  Expand view  RUN
if oWnd:nWidth > oWnd:nHeight
   MsgInfo( "landscape" )
else
   MsgInfo( "portrait" )
endif
regards, saludos

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

Postby rasptty » Wed Sep 03, 2008 3:25 pm

Obrigado é super simples,
rasptty
 
Posts: 88
Joined: Sun May 25, 2008 5:46 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 6 guests