User Guide
508 Chapter 12: Methods
restore()
Usage
-- Lingo syntax
windowObjRef.restore()
// JavaScript syntax
windowObjRef.restore();
Description
Window method; restores a window after it has been maximized.
Use this method when making custom titlebars for movies in a window (MIAW).
Parameters
None.
Example
This statement restores the maximized window named Control Panel:
-- Lingo syntax
window("Control Panel").restore()
// JavaScript syntax
window("Control Panel").restore();
See also
maximize(), Window
result
Usage
the result
Description
Function; displays the value of the return expression from the last handler executed.
The
result function is useful for obtaining values from movies that are playing in windows
and tracking Lingo’s progress by displaying results of handlers in the Message window as
the movie plays.
To return a result from a handler, assign the result to a variable and then check the variable’s
value. Use a statement such as
set myVariable = function(), where function() is the name
of a specific function.
Parameters
None.
Example
This handler returns a random roll for two dice:
on diceRoll
return random(6) + random(6)
end