| Attribute Data Type: | boolean |
| Attribute Default Value: | false |
| Atrribute Group: | Map |
| Atrribute Purpose: | Map configuration |
| Attribute Inherited from Preferences? | No |
| Attribute Read-Only? | No |
The attribute $Lock prevents a note or (more usually) an adornment from being inadvertently moved in the map.
Primarily used in Map view (indeed, intended primarily for adornments), if $Lock is true the note can be selected but not repositioned - i.e. $Xpos and$Ypos are locked. The map icon may still be resized. A note with $Lock set cannot be repositioned in other views, thus it for instance can't be drag-repositioned in Outline or other views. However, reflecting the fact $Lock is really designed for map use, the Note menu's Move Note Up/Down controls can be used to affect map icon stacking order though this does in fact change the note's $OutlineOrder value (and thus its Outline view position).
For new adornments, $Lock state (default: unlocked) can be set via a check-box 'Locked' that appears in the Create Adornment dialog. (Note that the similar dialog for notes and agents lacks such a tick-box).
The value of Lock may be changed via:
- the Rename command of the adornment's contextual menu.
- the note or adornment's Info View (Locked in is the Map group of attributes)
- in the Note menu. For Adornments (only) this additionally requires that the current view is a Map view and that the adornment is the currently selected object. In the menu, the lock state is indicated by the entry toggling being 'Lock' or 'Unlock'.
A drag (marquee) select in Map views ignores locked adornments.
