LocatorAutoCreate

LocatorAutoCreate
is an option for LocatorPane, Manipulate, and related functions that specifies whether new locators should be created when clicking away from existing locators.

DetailsDetails

  • The following settings can be given:
  • Truecreate a new locator with any Alt+Click
    {min,max}allow between min and max locators
    minallow anything more than min locators
    Allcreate a new locator with any mouse click
    {All,{min,max}}limit the number of possible locators
  • With LocatorAutoCreate->True, any Alt+Click that does not hit an existing locator will cause a new locator to be created at the position of the click. Alt+Click on an existing locator deletes the locator.
  • With LocatorAutoCreate->{min, max}, any Alt+Click that would decrease the number of locators below min or above max will have no effect.
  • LocatorAutoCreate->All specifies that any mouse click that does not hit an existing locator should create a new locator. 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 LocatorPane or other object.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Create a Manipulate where points can be added or deleted by Alt+Click:

New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »