Changes

Jump to navigation Jump to search

platform.window:width

43 bytes added, 23:14, 3 September 2011
Line 7: Line 7:  
(No arguments)
 
(No arguments)
   −
== Example ==
+
== Example ==
Below is an example of a program that creates/updates the "theHeight"  ad "theWidth" global variables whenever the user resizes the widget's  frame:
+
Below is an example of a program that creates/updates the "theHeight"  and "theWidth" global variables whenever the user resizes the widget's  frame:
 
<source lang="lua">
 
<source lang="lua">
 
function on.resize() --Define a function for the event
 
function on.resize() --Define a function for the event
Line 15: Line 15:  
end
 
end
 
</source>
 
</source>
 +
 +
== See Also ==
 +
[[platform.window:height]]
    
<br />
 
<br />
    
[[Category:platform.window]]
 
[[Category:platform.window]]

Navigation menu