The Wind object is a property of a Patcher that represents its window. You cannot create a new Wind or access other types of windows such as that of a Max table object.
Wind Properties
assoc [Patcher]
The Patcher object associated with the window.
assocclass [String]
The Max class of the object associated with the window.
dirty [Boolean]
Has the window’s contents been modified? This property is read-only in the runtime version of Max.
hasgrow [Boolean]
Does the window have a grow area?
hashorizscroll [Boolean]
Does the window have a horizontal scroll bar?
hasvertscroll [Boolean]
Does the window have a vertical scroll bar?
haszoom [Boolean]
Does the window have a zoom box?
hastitlebar [Boolean]
Does the window have a window title bar?
location [Array]
An array of four coordinates (left, top, right, bottom) representing the window’s location in global coordinates.
next [Wind]
The Wind object of the next patcher visible in the application’s list of windows The first Wind object can be accessed using the frontpatcher property of the Max object (as max.frontpatcher.wind).
size [Array]
An array of two coordinates (width, height) representing the window’s size.
title [String]
The window’s title.
visible [Boolean]
Can you see the window?
Wind Methods
bringtofront
Move the window in front of all other windows.
scrollto
Arguments
y [Number]
Scroll the window so that x and y are at the top-left corner.
sendtoback
Moves the window behind all other windows
setlocation
Arguments
top [Number]
bottom [Number]
right [Number]
Set the global location of the window according to the coordinates passed in as arguments.
See Also
Name | Description |
---|---|
JavaScript Usage | JavaScript Usage |