Pegasus Mail for Windows v3.0, configurable toolbar.
---------------------------------------------------------------------
Copyright (c) 1990-98, David Harris, All Rights Reserved.
Under Pegasus Mail v3.0 and later, the button panel (toolbar) is
configurable via simple scripts. The use of scripts is not normally
intended to be exposed to end-users, and it is anticipated that a
GUI-based editor will be made available at some future time. In the
meantime, however, those willing to do a small amount of work with an
editor can customize the toolbar to suit their needs.
Pegasus Mail maintains internal definitions for the toolbar in its
resource file, WINPMAIL.DAT: these definitions are usually loaded and
parsed when the toolbar is created. The user can, however, create a text
file called TOOLBAR.PM in his home mailbox, containing the same scripting
commands. If TOOLBAR.PM is found, it is loaded in preference to the
internal resource script.
The format of the resource script in TOOLBAR.PM is simple: each line
defines a single toolbar element - a button, a separator, or a combobox.
Other elements may be added in future. Lines beginning with semicolon
characters are regarded as comments and ignored.
Command lines have the following general form:
<type> [other parameters]
"type" is an integer that determines the type of the toolbar item. The
following values are defined:
0 A standard 22x20 pixel bitmapped button
1 An 8-pixel separator gap
Each type of control has its own parameter list as follows:
,<control_id>,<flags>,<bitmap_id>,<"tooltip">
"control_id" the internal activation code for this button
(see the list below for valid values)