Changes
Jump to navigation
Jump to search
← Older edit
platform.window:height
291 bytes added
,
22:15, 3 September 2011
no edit summary
Line 7:
Line 7:
(No arguments)
(No arguments)
−
== Example
==
+
== Example ==
−
<
syntaxhighlight
>
wh
= platform.window:height()</
syntaxhighlight
>
+
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"
>
+
function on.resize() --Define a function for the event
+
theWidth = platform.window:width()
+
theHeight
= platform.window:height()
+
end
+
</
source
>
−
<br />
<br />
+
== See Also ==
+
[[platform.window:width]]
+
+
<br />
[[Category:platform.window]]
[[Category:platform.window]]
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