User Guide

992 Chapter 14: Properties
Example
In this example, mrFount is a model resource of the type #particle. This statement sets the
sizeRange properties of mrFount. The first line sets the start value to 4, and the second line sets
the end value to 1. The effect of this statement is that the particles of mrFount are size 4 when
they first appear, and gradually shrink to a size of 1 during their lifetime.
member("fountain").modelResource("mrFount").sizeRange.start = 4
member("fountain").modelResource("mrFount").sizeRange.end = 1
sizeState
Usage
-- Lingo syntax
windowObjRef.sizeState
// JavaScript syntax
windowObjRef.sizeState;
Description
Window property; returns the size state of a window. Read-only.
The returned size state will be one of the following values:
Example
These statements maximize the window named Artists if it is not already maximized.
-- Lingo syntax
if (window("Artists").sizeState <> #maximized) then
window("Artists").maximize()
end if
// JavaScript syntax
if (window("Artists").sizeState != symbol("maximized")) {
window("Artists").maximize();
}
See also
Window
Size state Description
#minimized
Specifies that the window is currently minimized.
#maximized
Specifies that the window is currently maximized.
#normal
Specifies that the window is currently neither minimized nor maximized.