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.

Tcl Answers

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.

Tcl DDE client for Win32 machines

This client allows you to access DDE functionality from within TCL.

Balloon help over menu items

This script allows a programmer to provide menu-item behavior as the user drags the mouse across the menu.

Background processing

Demonstrates how a programmer can call exec in a non-blocking way, still capturing the output for future use.

BackSpace Eater

Demonstrates how events can easily be consumed while the program is busy. Removes the problem of keyboard repeat during potentially damaging operations, like backspacing.

BindFind

Goes through your existing appliation adding text to every binding that it finds, so you can see what events your bindings are firing for.

Button Continue

Shows one way to continue causing events to happen while a button is depressed.

ComboBox widget

My Tcl-only combobox widget.

ComboBox widget

Jeff Hobbes' Tcl-only combobox widget.

Dynamenu

See how to address manu entries when they are created.

Entry Limiting and Validation

Jeff Hobbes' Tcl-only entry validation routines.

Petri Dish

Move points on a polygon around on a canvas.

Motion

Shows how to have an object on a canvas follow your mouse input so that you could use the mouse as a control yoke.

Remote Keyboard

A (very) incomplete prototype showing how a remote keyboard might be implemented.

ScrolledGrid

Demonstrating scrolling a frame that is managed with the grid geometry manager inside a canvas.

Stdoutin

Demonstrating fileevent on a pipe, to provide running output from a command in a text widget.

Tabbed Dialog box

Present different pages of information as in Windows preferences.

Updated 4 Dec 96 to be 3D.

Tablegrid

Demonstrating a simple spreadsheet like layout using the grid manager.

Textlb.tcl

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.