AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YDAT | YWAIT | Byzgraf | FAQs
windowClosing (WindowEvent event) yoix.event
 
The windowClosing event handler is a special user-defined Function that can be added to a window, either native or internal, when it is created and that will be called automatically with a single WindowEvent argument whenever the user tries to close the window using the window's close button, the system menu, or a system dependent keystroke. A windowClosing event handler can only be added via addEventHandler after a window is created, but an existing windowClosing event handler can be assigned new values. Assigning NULL to windowClosing disables its functionality until a non-NULL value is assigned to it.

A windowClosing event handler can return nothing or any value other than zero when it wants to ignore the closing action, which means the window will remain open. Windows that do not ignore the closing action, either because they do not have a windowClosing event handler or the one they have returns zero, are automatically disposed by the Yoix interpreter, which means their windowClosed event handler, if they have one, will also be called.
 
 Return:   int or none
 
 See Also:   actionPerformed, addEventHandler, adjustmentValueChanged, caretUpdate, componentHidden, componentMoved, componentResized, componentShown, dragDropEnd, dragEnter, dragExit, dragGestureRecognized, dragMouseMoved, dragOver, drop, dropActionChanged, Event, focusGained, focusLost, hyperlinkActivated, hyperlinkEntered, hyperlinkExited, invocationAction, invocationBrowse, invocationChange, invocationEdit, invocationEditKey, invocationRun, invocationSelection, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, removeEventHandler, stateChanged, textValueChanged, valueChanged, windowActivated, windowClosed, windowDeactivated, windowDeiconified, WindowEvent, windowIconified, windowOpened

 

Yoix is a registered trademark of AT&T Intellectual Property.