
This function allows you to save selected text, text style and/or text ruler information as a macro. The text can be marked in the current frame with the mouse before clicking on this icon, or changed later. After clicking on the icon the following dialog box will appear:

In the top sections, you can first of all enter the key binding
combination that will call up the macro. There are four modifier keys
which you may use with other keys to call up macros. These keys are
[Control], [Alternate], left [Shift] and right [Shift]. Note that
Calamus distinguishes the two [Shift] keys here. With the numbers and
mathematical sign keys, if the Number-pad
checkbox is active
the keys on the numerical pad (at far right) will be used to call the
macro; when inactive, those on the main keyboard.
Immediately underneath, you may select the actual key (hot
key
) to be used with the modifier key (if any). There are 25
fields available for selection. In the one selected by default (the
largest rectangle) you can enter any key that produces a printing
character. Non-printing characters may be used as well by clicking on
the other fields: Here Bck
means [Backspace], Ret
represents [Return], the [Help] key is abbreviated Hlp
,
Del
is the [Delete] key, Ins
is short for [Insert],
Clr
for [ClrHome] and Ent
represents the [Enter] key.
Theoretically, the 90 available keys together with the 16 modifier key
binding combinations with [Control], [Alternate], left [Shift] and
right [Shift] give you a possible total of 1440 macros. However, some
of these are already in use for special key bindings (see Tools
function group), and so are not available for your macros.
In the bottom section of the dialog box you can enter the macro
name. You will also see three checkboxes: Use style
, Use
text rulers
, and Use text
. These tell Calamus which
elements of the marked or input text you want to save in the macro.
Click on any checkbox to turn it on or off.
When you click on [OK] or press [Return], the dialog box will disappear and the name of the new macro will appear in the macro list. If you have already used the key binding combination or the macro name, Calamus will warn you and give you the chance to enter a different binding or macro name.