Bpanel
Bpanel
---------------------------------------------------------------------
Pegasus Mail System,
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.
"type" is an integer that determines the type of the toolbar item. The
following values are defined:
Bitmapped buttons:
,<control_id>,<flags>,<bitmap_id>,<"tooltip">
"control_id" the internal activation code for this button
(see the list below for valid values)
"flags" an integer, currently unused but must be 0
"bitmap_id" the integer code for the internal bitmap for the
button (see the list below)
"tooltip" the tooltip text the button should display when the
mouse lingers over it for too long. This string
must appear in quotes.
Separators: No parameters
Combobox controls:
,<control_id>,<flags>
"control_id" the internal activation code for this button
(see the list below for valid values)
"flags" an integer, currently unused but must be 0
Note that for combobox and button controls, there must be a comma between
the "type" parameter and the control ID.
Control IDs:
Control IDs are internal tags used to tie a button to a given internal
function. The following control IDs are recognized:
Buttons:
820 Cut
821 Copy
822 Paste
Comboboxes:
You can create a button that triggers any standard menu item in the
Pegasus Mail menu hierarchy by adding 10000 to the menu item's code (see
Appendix A, below) then using that value as the button's control ID.
Bitmap IDs:
1820 Cut
1821 Copy
1822 Paste
Example
------------------------------------------------------------------------
WinPMail Mnemonic ID Menu function (Which Menu)
------------------------------------------------------------------------
IDM_HELP 10 "Context-sensitive help" (HELP)
IDM_USING_HELP 11 "Using Help" (HELP)
IDM_HELPINDEX 12 "Help index" (HELP)
IDM_RMACRO 75 "Open glossary manager" (EDIT/GLOSSARY)
IDM_PMACRO 76 "Expand glossary entry" (EDIT/GLOSSARY)
IDM_NEWMESSAGE 101 "Start new message" (FILE)
IDM_READNEW 102 "Open new mail folder" (FILE)
IDM_OPENFOLDER 103 "Folders..." (FILE)
IDM_IMPORT 104 "Import into message" (MESSAGE)
IDM_SAVESESSION 105 "Save message as draft" (MESSAGE)
IDM_RESTORESESSION 106 "Open saved message" (FILE)
IDM_PRINT 107 "Print" (FILE)
IDM_PRINTSETUP 109 "Printer setup" (FILE)
IDM_FILTERS 110 "New mail filtering rules" (FILE)
IDM_EXIT 111 "Exit" (FILE)
IDM_PREF_GENERAL 121 "General settings" (FILE/PREFS)
IDM_PREF_SMF 122 "NetWare MHS settings" (FILE/PREFS)
IDM_PREF_SIGS 123 "Signatures..." (FILE/PREFS)
IDM_PREF_HOMEBOX 124 "Home mailbox location" (FILE/PREFS)
IDM_PREF_EXT 125 "Extended features" (FILE/PREFS)
IDM_UNDO 131 "Undo" (EDIT)
IDM_CUT 132 "Cut" (EDIT)
IDM_COPY 133 "Copy" (EDIT)
IDM_PASTE 134 "Paste" (EDIT)
IDM_CLEAR 135 "Clear" (EDIT)
IDM_SELECTALL 136 "Select all" (EDIT)
IDM_SPELLING 137 "Check spelling" (EDIT)
IDM_SERVER 138 "File servers..." (FILE)
IDM_LOCALUSERS 141 "Lookup local users" (ADDRESSES)
IDM_ADDRESSBOOKS 142 "Address books" (ADDRESSES)
IDM_MAILINGLISTS 143 "Distribution lists..." (ADDRESSES)
IDM_SORTBYKEY 144 "Sort by key" (ADDRESSBOOK)
IDM_SORTBYNAME 145 "Sort by name" (ADDRESSBOOK)
IDM_FIND 146 "Find text", (MESSAGE/FOLDER/READER/ADDRBK)
IDM_FINDAGAIN 147 "Find again", (MESSAGE/FOLDER/READER/ADDRBK)
IDM_PASTENAMES 148 "Paste names" (ADDRESSBOOK)
IDM_PASTEADDRESSES 149 "Paste addresses" (ADDRESSBOOK)
IDM_SAVESIZE 150 "Save window size" (Various)
IDM_OTHEROPTIONS 151 "Special message view" (MESSAGE)
IDM_SHOWHEADERS 153 "Show all headers" (READER)
IDM_EXTRACT 154 "Save messages to disk" (FOLDER/READER)
IDM_ATTACH 155 "Switch to attachments view" (MESSAGE)
IDM_MARKUNREAD 156 "Mark message as unread" (FOLDER and NB)
IDM_ALIASING 157 "Resolve aliases" (ADDRESSBOOK)
IDM_BPPREF 158 "Button panel preferences" (FILE/PREFS)
IDM_UUDECODE 160 "UUdecode message" (FOLDER/READER /SPECIAL)
IDM_UNBINHEX 161 "Un-BinHex message" (FOLDER/READER /SPECIAL)
IDM_LOCALSIG 162 "Signature for local mail" (FILE/PREFS)
IDM_INETSIG 163 "Signature for Internet mail" (FILE/PREFS)
IDM_MHSSIG 164 "Signature for MHS mail" (FILE/PREFS)
IDM_DELEXPIRED 165 "Delete expired messages" (FOLDER/SPECIAL)
IDM_EDMAIL 167 "Switch to message editor view" (MESSAGE)
IDM_QUICKLOOKUP 168 "Quick lookup" (ADDRESSES)
IDM_WORDWRAP 169 "Reformat long lines" (READER)
IDM_DELLINE 170 "Delete line" (MESSAGE)
IDM_REFORMAT 171 "Reformat paragraph" (MESSAGE)
IDM_INDENT 172 "Indent text" (MESSAGE)
IDM_REPLACE 173 "Search and replace" (MESSAGE)
IDM_DELWORD 174 "Delete word right" (MESSAGE)
IDM_APREFS 175 "Advanced settings" (FILE/PREFS)
IDM_ENLARGE 176 "Enlarge window" (WINDOW)
IDM_ABK_EXPORT 177 "Export addressbook" (ADDRESSBOOK)
IDM_ABK_IMPORT 178 "Import addressbook" (ADDRESSBOOK)
IDM_NOTICEBOARDS 179 "Noticeboards" (FILE)
IDM_ANN_EDIT 180 "Add/edit annotation" (FOLDER)
IDM_SRT_DATE 270 "Sort by date" (FOLDER)
IDM_SRT_REVDATE 271 "Sort by reverse date" (FOLDER)
IDM_SRT_SUBJECT 272 "Sort by subject" (FOLDER)
IDM_SRT_FROM 273 "Sort by sender's name" (FOLDER)
IDM_SRT_SUBJECT2 274 "Sort by subject/reverse date" (FOLDER)
IDM_SRT_COLOUR 275 "Sort by colour" (FOLDER)
IDM_FORMS 185 "Open Forms Manager" (FILE)
IDM_ANN_DELETE 186 "Delete annotation" (FOLDER)
IDM_REVIEWMAIL 187 "Review Queued Mail" (FILE)
IDM_TODISK 230 "Save to disk" (Various)
IDM_FROMDISK 231 "Read from disk" (Various)
IDM_EXTRACTFILE 240 "MHS directory service" (ADDRESSES)
IDM_LOGGED_IN 241 "Logged-in users" (ADDRESSES)
IDM_ADD_USER 242 "Add sender to list" (READER/SPECIAL)
IDM_REMOVE_USER 243 "Remove sender from list" (READER/SPECIAL)
IDM_FONT 299 "Font" (Various)
IDM_TILE 500 "Tile" (WINDOW)
IDM_CASCADE 501 "Cascade" (WINDOW)
IDM_ARRANGEICONS 502 "Arrange Icons" (WINDOW)
IDM_BUTTONPANEL 503 "Button panel" (WINDOW)
IDM_NETCONFIG 210 "Network Configuration" (FILE)
IDM_GETMAIL 211 "Check host for new mail" (FILE)
IDM_SENDMAIL 212 "Send all queued mail" (FILE)
IDM_GETANDSEND 189 "Check and send mail" (FILE)