# Copyright (c) 1996 Sun Microsystems, Inc. # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # =head1 NAME Tk::event - Miscellaneous event facilities: define virtual events and generate events =for category Binding Events and Callbacks =head1 SYNOPSIS I<$widget>-EBI(?I?); =head1 DESCRIPTION The BI methods provides several facilities for dealing with window system events, such as defining virtual events and synthesizing events. Virtual events are shared by all widgets of the same B. Different Ls can have different virtual event. The following methods are currently supported: =over 4 =item I<$widget>-EB(B<'EE>IBE'>I<, sequence >?,I?) Associates the virtual event I with the physical event sequence(s) given by the I arguments, so that the virtual event will trigger whenever any one of the Is occurs. I may be any string value and I may have any of the values allowed for the I argument to the L method. If I is already defined, the new physical event sequences add to the existing sequences for the event. =item I<$widget>-EB(B<'EE>IBE'> ?,I I?) Deletes each of the Is from those associated with the virtual event given by I. I may be any string value and I may have any of the values allowed for the I argument to the L method. Any Is not currently associated with I are ignored. If no I argument is provided, all physical event sequences are removed for I, so that the virtual event will not trigger anymore. =item I<$widget>-EB(I ?,I