Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
platform.window:width
1 byte added
,
23:13, 3 September 2011
→Example
Line 8:
Line 8:
== 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
Adriweb
Bureaucrats
,
Administrators
935
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version