Tk::event

Tk::event contains miscellaneous event facilities: define virtual events and generate events.
Download

Tk::event Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tk team
  • Publisher web site:
  • http://search.cpan.org/~ni-s/Tk-804.027/pod/Adjuster.pod

Tk::event Tags


Tk::event Description

Tk::event contains miscellaneous event facilities: define virtual events and generate events. Tk::event contains miscellaneous event facilities: define virtual events and generate events.SYNOPSIS$widget->eventAction(?arg, arg, ...?);The eventAction 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 MainWindow. Different MainWindows can have different virtual event.The following methods are currently supported:$widget->eventAdd('', sequence ?,sequence, ...?)Associates the virtual event virtual with the physical event sequence(s) given by the sequence arguments, so that the virtual event will trigger whenever any one of the sequences occurs. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. If virtual is already defined, the new physical event sequences add to the existing sequences for the event.$widget->eventDelete('' ?,sequence, sequence, ...?)Deletes each of the sequences from those associated with the virtual event given by virtual. Virtual may be any string value and sequence may have any of the values allowed for the sequence argument to the bind method. Any sequences not currently associated with virtual are ignored. If no sequence argument is provided, all physical event sequences are removed for virtual, so that the virtual event will not trigger anymore.$widget->eventGenerate(event ?,option => value, option => value, ...?)Generates a window event and arranges for it to be processed just as if it had come from the window system. $window is a reference to the window for which the event will be generated. Event provides a basic description of the event, such as < Shift-Button-2 > or >. If Window is empty the whole screen is meant, and coordinates are relative to the screen. Event may have any of the forms allowed for the sequence argument of the bind method except that it must consist of a single event pattern, not a sequence. Option-value pairs may be used to specify additional attributes of the event, such as the x and y mouse position; see "EVENT FIELDS" below. If the -when option is not specified, the event is processed immediately: all of the handlers for the event will complete before the eventGenerate method returns. If the -when option is specified then it determines when the event is processed.$widget->eventInfo(?'>'?)Returns information about virtual events. If the argument is omitted, the return value is a list of all the virtual events that are currently defined. If is specified then the return value is a list whose elements are the physical event sequences currently defined for the given virtual event; if the virtual event is not defined then undef is returned. Requirements: · Perl


Tk::event Related Software