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.

Details

  • The following settings can be given:
  • Truecreate a new locator with any 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
  • Use Click on Windows, Click on Macintosh, and Click on Linux.
  • With LocatorAutoCreate->True, any Click that does not hit an existing locator will cause a new locator to be created at the position of the click. Click on an existing locator deletes the locator.
  • With LocatorAutoCreate->{min,max}, any 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. 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.

Examples

Basic Examples  (1)

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

In[1]:=
Click for copyable input
Out[1]=Play Animation

See Also

LocatorPane  ClickPane  EventHandler  Locator  Dynamic

Introduced in 2007
(6.0)