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

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
removeEventHandler (Object component, String name) yoix.awt
 
Removes the event handler named name from component by setting the value assinged to the name field in the component dictionary to NULL. Since this built-in is equivalent to directly setting the field to NULL, it is really only supplied to counterbalance the more useful addEventHandler built-in. Only if the supplied name corresponds to a valid event handler for the supplied component will field be set to NULL. A non-zero int is returned when the event handler is successfully removed.
 
 Example:   The program,
import yoix.*.*;

Frame f = {
    int visible = 1;

    mouseExited(e) {
        fprintf(stderr, "bye\n");
    }
};

sleep(5);
removeEventHandler(f, "mouseExited");
fprintf(stderr, "mouseExited has been removed\n");
remopves the mouseExited event handler from the frame.
 
 Return:   int
 
 See Also:   addEventHandler

 

Yoix is a registered trademark of AT&T Inc.