[Back to TkGoodStuff] TkGoodStuff Images

Using Icons in TkGoodStuff

The standard buttons (as used by Biff and Net, and as produced by AddButton) may contain icons and/or text. Icons are read in from files. To specify an icon, you give the file name:
/usr/include/X11/bitmaps/datebook
$images/warning
(Remember that $images names the images subdirectory of the tkgoodstuff library.) What sorts of images can tkgoodstuff handle? This depends on the wish executable you choose when installing tkgoodstuff. The standard tk4.0 distribution comes with wish4.0; so this is the wish executable that is looked for as a default. If you use this default, then you can use images that are bitmaps, ppm's, and gif's. More image formats likely will become "standard" in the future. If you are eager to use another image format (e.g., xpm's), you will need to get a wish executable that is extended so as to understand images of that format. For instance, the source for one such interpreter, which I call "xpmwish4.0" is in ftp://merv.philosophy.lsa.umich.edu/pub/ (I didn't write this code; the credits are included). Also, Tix4.0's tixwish understands xpm. But for this application, I recommend using the smaller, simpler xpmwish4.0.

Sep 14, 1995. Mark Crimmins markcrim@umich.edu

[Back to TkGoodStuff]