Macro Language Reference > Macros > System > actdef
  
actdef
Description
Defines toolbar actions in the following files:
system toolbar actions: sactuk.3ad
user defined toolbar actions: siconusr.3ic: this file is generated by PTC ALD the first time a user defines toolbar actions.
 
Example 209. Define the td system toolbar action
The example syntax below defines the td action in the sact.3ad system file:
actdef "td",1
$i td<>
$t Document<>
$m td<>
$g (v01403)<>
$s ((?+^(v01403)):(?=^(v01505),0))<>
$d Switch to Document Mode<>
Syntax
actdef action name:s 1:n name types:s? ( length:n? )
action name
The name of the action to be defined: in double quotes. This name can be a copy of a macro name as there is no interaction.
1
The string type: value must be present and it is not changeable.
name types
An associated condition type: generally corresponds to a condition referred to by another actdef. If not available the default is standard:
Ø
Default standard action type
mode
Status mode
page
Status page
zoom
Status zoom
text
Status text
smode
Status sub-mode
iso
Status ISO
show
Status show.
G
Group name, e.g. font/page/tags [optional]
i
Icon name: see iconedit
t
Icon display text
m
Macro(s) / command to execute
g
Grey test, e.g. the getvar code for how many windows open in the example above
$g (v01403)<>
s
Selected, so this example is testing the current mode system getvar
$s ((?+^(v01403)):(?=^(v01505),0))
<>
d
Description text, to be displayed as a tooltip when hovering over the button
M
Menu text
length
The length of the display, when the name type has been specified, default is 20 characters. For example the Page mode is 27 characters wide, it displays the document's page numbers, first page number up to 4 figures or 9999.
Related Links