A newer version of Max is available. Click here to access the latest version of this document.
The Wind Object
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, get)
The Patcher object associated with the window.
assocclass (String, get)
The Max class of the object associated with the window.
dirty (Boolean, get/set)
Has the window’s contents been modified? This property is read-only in the runtime version of Max.
hasgrow (Boolean, get/set)
Does the window have a grow area?
hashorizscroll (Boolean, get)
Does the window have a horizontal scroll bar?
hasvertscroll (Boolean, get)
Does the window have a vertical scroll bar?
haszoom (Boolean, get/set)
Does the window have a zoom box?
hastitlebar (Boolean, get/set)
Does the window have a window title bar?
location (Array, get/set)
An array of four coordinates (left, top, right, bottom) representing the window’s location in global coordinates.
next (Wind, get)
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, get/set)
An array of two coordinates (width, height) representing the window’s size.
title (String, get/set)
The window’s title.
visible (Boolean, get/set)
Can you see the window?
Wind Methods
bringtofront ()
Moves the window in front of all other windows
scrollto (x, y)
Scrolls the window so that x and y are at the top-left corner.
sendtoback ()
Moves the window behind all other windows
setlocation (left,top,bottom,right)
Set the global location of the window according to the coordinates passed in as arguments