DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:get_display_width

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:get_display_width [2015/03/04 16:25] (current)
octazid created
Line 1: Line 1:
 +=====GetDisplayWidth=====
 +
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **GetDisplayHeight** method gets the width of the screen area available to your app in pixels. ​
 +
 +<​code>​ app.GetDisplayWidth();</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  width = app.GetDisplayWidth();​
 +  app.ShowPopup( width );
 +}
 +
 +</​code>​
  
built_in/get_display_width.txt ยท Last modified: 2015/03/04 16:25 by octazid