Tcl HomeTcl Home hosted by
ActiveState

Google SiteSearch

Interactive Room Finder

Find Your Room!

This tclet is best viewed with a window at least 700 pixels wide (apologies to those display-challenged people out there!). It demonstrates the power of the canvas widget. In this tclet, we lay out a floor plan and let you look up rooms by number (type the number into the entry at the top right and watch the selected room light up). The tclet also fills out the room number in the entry box as the mouse cursor passes over each room. In a complete application, when connected to a data base, you'd be able to call up information about each room, for example who occupies it and what equipment is installed there.


Source

View floor.tcl. Most of the hard work was in generating the database that describes the wall locations.