ICONS - viewIcons
Home Man Page Libraries Examples Download License Contact

Starting viewIcons

viewIcons provides a facility to display the contents of ICONS icon libraries. By default, the directory given by the TCL command info library is the default icon library directory for viewIcons.

An alternative default directory can be specified as the first parameter to the viewIcons.tcl command.


The following examples assume a Unix/Linux type operating system. Absolute and relative pathnames may be used.

viewIcons.tcl .

Sets the default icon library directory to be the current (working) directory.

viewIcons.tcl /home/adavis

Sets the default icon library directory to /home/adavis.

Using viewIcons

When viewIcons is started the icon display area of the screen is blank. If there is an icon library in the default location pressing the View button will display its contents.

The buttons and entry fields at the top of the viewIcons window have the following functions:-

LibraryEntryFully qualified name of icon library to be displayed.File tkIcons in info library directory.
BrowseButtonOpens icon library file selection dialog box.N/A
GroupsEntryList of icon groups to be displayed.Display all groups ("*").
ViewButtonUpdates window to display specified icon library.N/A
ColumnsButtonsSets the number of columns for the icon display.14
ExitButtonExit from viewIcons.N/A

The icon library file can be changed by typing a new filename into the Library field then pressing the "Enter/Return" key or the View button. Alternatively, pressing the Browse button will display a file selection dialog box. When a file is selected from the dialog the icon display area will update automatically.

The icon groups displayed can be changed by typing a space separated list of groups into the Groups field then pressing the "Enter/Return" key or the View button.

To display the details of an icon move the mouse pointer to the required icon. The information will be displayed in a "pop up" window:

Using The Clipboard and Primary Transfer

To create a complete "image create" command in the clipboard, move the mouse pointer to the required icon then press the left mouse button. There will be a "bleep" to confirm that the command has been generated.


Clicking on the "folder16" icon of the kde standard library will generate the following command in the clipboard:-

image create photo folder16 -data {

When using an X-Windows environment, such as CDE or KDE, the "image create" command is also made available for Primary Transfer. In this case, pressing Shift-Ins will copy the "image create" command.

Copyright © 2002 Adrian Davis.