Jump to: navigation, search


47 bytes added, 21:11, 3 September 2011
== Example ==
Below is an example of a program that draws a line on creates/updates the screen when "theHeight" ad "theWidth" global variables whenever the user resizes the window widget's frame:
<source lang="lua">
function on.resize() --Define a function for the event
theWidth = platform.window.:width() theHeight = platform.window.:height()
You can then refer to the height and the width of the widget by calling the global variables instead of the [[CatrgoryCategory:platform.window]] methods.