| How To... These pages provide focused guides to particular problems.
Viewed by name (By date)
Add Record
- Data file formats for TCL scripts
- A typical TCL script stores its internal data in lists andarrays (the two primary data structures in TCL). Supposeyou want to write a TCL application that can save its dataon disk and read it back again. You can choose to storethe data in a binary form, or in a text file.
This paper talks about textual data fileformats. We will look at a number of possibleformats and how to parse them in TCL.In particular, we will show some simple but verypowerful techniques that make text file parsing a loteasier. The flexibility of TCL allows you to createhuman-readable text formats that can be parsed withlittle effort. Edit
(2000-11-18) - Guide to Creating Object Commands
- Creating object commands (such as Tk widget commands) inpure Tcl is often desirable but tricky to get right, especially in thenew world of namespaces. This guide shows how to createobject commands robustly. Edit
(2000-02-24)
- How to use "option get" and X Resources
- This article by Donal Fellows explains how to get the most out of the X resource database (i.e., option get) from Tk applications. Use the resource database to store information about fonts, colors, text and other widget attributes. Edit
(1998-10-26)
- Objects in TCL: an introduction
- TCL does not offer object oriented primitives, but thelanguage is flexible enough to accomodate new primitives.This paper decribes a well known technique calledobject commands, which adds some object primitivesto TCL. The technique works in pure TCL, requiring norecompilation of the interpreter.
Once you understand how object commands work, you will beable to figure out the code of most object packages andextensions that exist for TCL. Edit
(2000-11-18) - Setup Tcl/Tk Shells for Windows NT
- Instructions on how to better integrate Tcl/Tkscripts with the Windows NT shell. The page includes a registryfile that does most of the work for you. The changes basicallyallow you to use Tcl/Tk scripts as normal commands and use fileextensions to specify whether a script is a command-line programthat interacts with the console and uses the standard I/O streams or is a windowed program that interacts with the user's WindowStation. Additionally, the registry changes support passingcommand-line parameters to the Tcl/Tk script from the consolewhichever type of application it implements. Edit
(1999-12-22)
- Success with Tcl 8.0 Namespaces and Packages
- This describes several rules of thumb when usingTcl namespaces and packages. It suggests naming conventionsfor packages and associated namespaces, and describes severalgood programing conventions. Edit
(2000-02-24)
- Using ssh port forwarding - quick and dirty SSL from Tcl.
- This posting shows how to set up port forwarding using ssh (secure shell). Once this is set up, you connect to a local socket and ssh forwards it to a remote socket using an encrypted channel. Edit
(1999-08-17)
Top of page Developer Home
| Getting Started
| Tcl Advocacy
| Software Resources
| Documents
| Community
| Links
Site Map
| Feedback
| webmaster@-SPAM-.tcl.tk
|