Background: Suppose I have something like this:
DynamicModule[{pt1 = {0, 0}, pt2 = {0, 1}, pt3 = {1, 0}},
Graphics[Polygon[{pt1, pt2, pt3}], PlotRange -> 1]]
which I would like to change into this via a mouse click on the Polygon into this:
DynamicModule[
{pt1 = {0, 0}, pt2 = {0, 1}, pt3 = {1, 0}},
Manipulate[
Graphics[Polygon[{pt1, pt2, pt3}], PlotRange -> 1],
{{pt1, {0, 0}}, Locator}, {{pt2, {0, 1}}, Locator}, {{pt3, {1, 0}},
Locator}]]
Question: What code should I add to one of the snippets above to achieve this?