Changes

Jump to navigation Jump to search

on.resize

60 bytes added, 01:21, 16 January 2012
no edit summary
Line 1: Line 1:  
The event '''on.resize''' is fired when the user resizes the window where the lua script is.
 
The event '''on.resize''' is fired when the user resizes the window where the lua script is.
   −
It has no argument.
+
It can pass two arguments (the new width and the new height) : See 2nd example.
    
It's a good place to put your global window-size-related variable since this event only fires when the script's frame's size changes (see Example).
 
It's a good place to put your global window-size-related variable since this event only fires when the script's frame's size changes (see Example).

Navigation menu