({{, (RefLink[LocatorAutoCreate, paclet:ref/LocatorAutoCreate]) 
is an option for (RefLink[LocatorPane, paclet:ref/LocatorPane]), (RefLink[Manipulate, paclet:ref/Manipulate]), and related functions that specifies whether new locators should be created when clicking away from existing locators.}})

OpenersNotesSection(Spacer1)Details

The following settings can be given:

Use (Key0[alt])Click on Windows, (Key0[cmd])Click on Macintosh, and (Key1[ctrl, alt])Click on Linux.

With (RefLink[LocatorAutoCreate, paclet:ref/LocatorAutoCreate])->(RefLink[True, paclet:ref/True]), any (Key0[alt])Click that does not hit an existing locator will cause a new locator to be created at the position of the click. (Key0[alt])Click on an existing locator deletes the locator.

With (RefLink[LocatorAutoCreate, paclet:ref/LocatorAutoCreate])->{min,max}, any (Key0[alt])Click that would decrease the number of locators below min or above max will have no effect.

(RefLink[LocatorAutoCreate, paclet:ref/LocatorAutoCreate])->(RefLink[All, paclet:ref/All]) specifies that any mouse click that does not hit an existing locator should create a new locator. (Key0[alt])Click deletes a locator.

When a new locator is added, its coordinates are placed at the end of the list of coordinates for the enclosing (RefLink[LocatorPane, paclet:ref/LocatorPane]) or other object.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a (RefLink[Manipulate, paclet:ref/Manipulate]) where points can be added or deleted by (Key0[alt])Click:

Manipulate[Graphics[{Line[u]},PlotRange->2],{{u,{{-1,-1},{1,1}}},Locator,LocatorAutoCreate->True}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LocatorPane, paclet:ref/LocatorPane])  ▪  (RefLink[ClickPane, paclet:ref/ClickPane])  ▪  (RefLink[EventHandler, paclet:ref/EventHandler])  ▪  (RefLink[Locator, paclet:ref/Locator])  ▪  (RefLink[Dynamic, paclet:ref/Dynamic])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Click-Interactive Panels, paclet:guide/ClickInteractivePanels])}})}})