Event handler
|
An event handler is a part of a computer program created to tell the program how to act in response to a specific event (e.g. the clicking of a mouse or the dragging of a scrollbar or pressing a button). The programmer's custom event handling functions will be executed by the event dispatcher. The event dispatcher is part of the operating system that detects graphical user interface (GUI) events, and calls functions in the executing program to handle those events.
Without event handlers nothing would happen when you interacted with an event driven program, as most GUI programs are.
How event handlers function is highly dependent on the operating system, programming language, and GUI framework used. A programmer will need to consult the documentation provided with the language used to get the exact syntax and usage of event handling. A user only needs to know how their operating system functions. Users do not need to have any knowledge of the underlying event handler code.
See also
External links
- Write an Event Handler (http://hikwww2.fzk.de/hik/orga/verdi/rs/Dokumentation/Cpp/Cpp/ioc/tasks/t90us014.htm)
- A High Level Design of the Sub-Farm Event Handler (http://atddoc.cern.ch/Atlas/Notes/061/Note061-1.html)
- An Events Syntax for XML (http://www.w3.org/TR/xml-events/Overview.html#section-eventhandlers)
- Interface Event (http://java.sun.com/j2se/1.5.0/docs/guide/plugin/dom/org/w3c/dom/events/Event.html)
- Distributed Events and Notifications (http://www.jini.org/nonav/standards/davis/doc/specs/html/event-spec.html)
- Event order (http://www.quirksmode.org/js/events_order.html)
- Supporting Three Event Models at Once (http://developer.apple.com/internet/webcontent/eventmodels.html)
- Citations from CiteSeer (http://citeseer.ist.psu.edu/cis?q=event+handler)
- Article "Another Look at Events (http://doc.trolltech.com/qq/qq11-events.html)" by Jasmin Blanchette
- Article "Event Handlers and Callback Functions (http://w3future.com/html/stories/callbacks.xml)" by Sjoerd Visscher