This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
app_methods:setorientation [2015/03/04 16:02] octazid [app.SetOrientation] |
app_methods:setorientation [2015/03/26 19:21] madlyr [app.SetOrientation] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====app.SetOrientation===== | + | =====SetOrientation===== |
- | //(Samples taken from the Droidscript documentation)// | + | //(Samples taken from the Droidscript documentation)// |
+ | < | ||
+ | |||
+ | ====Example==== | ||
<code javascript> | <code javascript> | ||
function OnStart() | function OnStart() | ||
{ | { | ||
- | app.SetOrientation( " | + | app.SetOrientation( " |
lay = app.CreateLayout( " | lay = app.CreateLayout( " | ||
Line 11: | Line 15: | ||
lay.AddChild( txt ); | lay.AddChild( txt ); | ||
app.AddLayout( lay ); | app.AddLayout( lay ); | ||
- | }</ | + | } |
+ | |||
+ | function OnOrientationChanged() | ||
+ | { | ||
+ | app.ShowPopup( " | ||
+ | } | ||
+ | |||
+ | </ | ||
=====app.GetOrientation===== | =====app.GetOrientation===== |