Author: Gerald W. Lester <Gerald.Lester@cox.net>
State: Draft
Type: Project
Vote: Pending
Tcl-Version: 8.7
Created: 25-Jan-2005
Post-History:
Keywords: Tk
Abstract
This TIP arranged for a new virtual event to be fired every time a widget is created. This allows class bindings to automatically discover new widget instances and act on their creation.
Rationale
It would be useful if it was possible to set an event on class bindings to allow custom code to be run when a widget of a particular class is created.
Note that the standard X11
Proposal
It is proposed that the virtual event <
Example
% bind Toplevel <<Create>> {
puts stdout {New toplevel called {%W} was created!}
}
% toplevel .foo
New toplevel called {.foo} was created!
Proposed C API Changes
No changes would be requried, this change is for the Tcl layer API.
Reference Implementation
A reference implementation does not yet exist.
Copyright
This document has been placed in the public domain.