NOTE: This is a now-ancient page. It applied to tcl 7.4 or so to 7.6. I'm leaving it here if anyone's interested, but the information here is likely to be completely outdated.
The scripts you'll find here are little hacks by various authors to illustrate how to do things in TCL that are not immediately obvious.
This client allows you to access DDE functionality from within TCL.
This script allows a programmer to provide menu-item behavior as the user drags the mouse across the menu.
Demonstrates how a programmer can call exec in a non-blocking way, still capturing the output for future use.
Demonstrates how events can easily be consumed while the program is busy. Removes the problem of keyboard repeat during potentially damaging operations, like backspacing.
Goes through your existing appliation adding text to every binding that it finds, so you can see what events your bindings are firing for.
Shows one way to continue causing events to happen while a button is depressed.
My Tcl-only combobox widget.
Jeff Hobbes' Tcl-only combobox widget.
See how to address manu entries when they are created.
Jeff Hobbes' Tcl-only entry validation routines.
Move points on a polygon around on a canvas.
Shows how to have an object on a canvas follow your mouse input so that you could use the mouse as a control yoke.
A (very) incomplete prototype showing how a remote keyboard might be implemented.
Demonstrating scrolling a frame that is managed with the grid geometry manager inside a canvas.
Demonstrating fileevent on a pipe, to provide running output from a command in a text widget.
Present different pages of information as in Windows preferences.
Updated 4 Dec 96 to be 3D.
Demonstrating a simple spreadsheet like layout using the grid manager.
A verysimple version of implementing a listbox inside a text widget to provide a graphics object to the left of a text item. Shows how I mock up a new widget type in standard TK.