This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.

# Locator

 Locator[{x, y}]represents a locator object at position {x, y} in a graphic. Locator[Dynamic[pos]]takes the position to be the dynamically updated current value of pos, with this value being reset if the locator object is moved. Locator[{x, y}, obj]displays obj as the locator object. Locator[{x, y}, None]displays nothing visible as the locator object.
• Locator[{x, y}, Automatic] uses the default "crosshairs" appearance for the locator object.
• Locator[Dynamic[{x, y}]] will reset the values of x and y when the locator object is moved; Locator[{x, y}] will not.
• Locator objects that appear inside Deploy[expr] can still be manipulated interactively, just like, for example, Slider objects.  »
• If obj does not define its own absolute size, its size when used as a locator object can be specified using the ImageSize option of Locator.
• The center of the locator object is taken to be the setting for the AlignmentPoint option of obj, or by default, the center of the bounding box for obj.
• The following options can be given:
 AutoAction False whether to move automatically when the mouse is over the graphic Enabled Automatic whether the locator is enabled, or grayed out ImageSize Automatic the size of the displayed locator object LocatorRegion Automatic where the locator object should be allowed to go
• Locator can be used to specify the control for a variable in Manipulate, to indicate that the value of the variable should be determined by the position of a locator.  »
Set up a locator that can move in a graphic:
 Out[1]=

Set up locator that defines the value of p:
 Out[1]=

Put a locator in a Manipulate:
 Out[1]= Play Animation ▪
 Scope   (7)
 Options   (11)
 Applications   (2)
New in 6