Site Tools


# $EPIC: on_window_server.txt,v 1.2 2007/02/13 06:05:45 jnelson Exp $


on [<modes>]window_server [<serial#>] [-|^]<match> { <action> }


This hook is triggered each time a window changes its server association for any reason whatsoever.

The server refnum -2 is special, and it means the window has disconnected; it is no longer associated with any server.

Traditionally, newly created windows will not hook this event, but that might change in the future. Be prepared for forwards compatability. In this case, the old server refnum will be -2.


$0 The window refnum
$1 The old server refnum
$2 The new server refnum


This first appeared in EPIC5-0.3.2.

on_window_server.txt · Last modified: 2007/02/13 06:05 by