Site Tools


on_window_command

# $EPIC: on_window_command.txt,v 1.2 2006/08/19 02:36:28 sthalik Exp $

Synopsis:

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

Description:

This hook is triggered each time a /WINDOW command is executed, to inform you of any changes to the current operative window. This can be useful if you need to prep a window before commands are executed on it.

Changing things about a window from this hook can be dangerous and lead to a crash. This would not be a bug in epic. Use DEFER to be completely safe.

Parameters:

$0 The operative window refnum before the command was executed
$1 The operative window refnum after the command was executed.

If the command failed, then this is -1.

History:

ON WINDOW_COMMAND first appeared in EPIC4-1.2.0.

on_window_command.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1