| ||||||
|
|
Tk_CreateGenericHandlerPrepared by Ready-to-Run Software, Inc. Tk_CreateGenericHandleTk3Library Procedures_________________________________________________________________ Tk_CreateGenericHandleTk3Library Procedures
Whenever an X event is processed by Tk_HandleEvent, proc is
called. The return value from proc is normally 0. A non-
zero return value indicates that the event is not to be han-
dled further; that is, proc has done all processing that is
to be allowed for the event.
If there are multiple generic event handlers, each one is
called for each event, in the order in which they were esta-
blished.
Tk_DeleteGenericHandler may be called to delete a
previously-created generic event handler: it deletes each
handler it finds that matches the proc and clientData argu-
ments. If no such handler exists, then
Tk_DeleteGenericHandler returns without doing anything.
Although Tk supports it, it's probably a bad idea to have
more than one callback with the same proc and clientData
arguments.
Establishing a generic event handler does nothing to ensure
that the process will actually receive the X events that the
handler wants to process. For example, it is the caller's
responsibility to invoke XSelectInput to select the desired
events, if that is necessary.
|
|
|
Email addresses listed on this site may NOT be used for unsolicited commercial email. Ready-to-Run Software, Inc Privacy Statement Portions (c)Copyright, 1996-2005 by
Ready-to-Run
Software, Inc |
To return to the Ready-to-Run Software WinPak Table of contents please presshere