6

Before adding a Locator to a Manipulate, I can easily print or export the result using a context menu:

enter image description here

But after adding a Locator, I can't even get a context menu to appear. How do I enable graphics generated with Locators so that the context menu functionality is restored?

    Manipulate[
     Show[ParametricPlot[BezierFunction[{{0, 0}, c1, {1, 1}}][x], {x, 0, 1}]],
    {{c1,{.2, .2}}, Locator}]
orome
  • 12,819
  • 3
  • 52
  • 100
  • It's not about Manipulate, the same behaviour can be seen in a simple Graphics object, as the Locator intercepts all mouse events: try this: {Graphics[{Circle[]}], Graphics[{Circle[], Locator[{0, 0}]}]}. I'm thinking of an easier workaround than creating an EventHandler in a DynamicModule... – István Zachar Oct 29 '12 at 20:20
  • It probably uses Deployed to make it unselectable so that there is no ambiguity as to whether a click meant "move the locator" or "select the figure". Have you tried clicking the + and selecting "Paste Snapshot"? – rm -rf Oct 29 '12 at 20:21
  • @rm-rf: Can I just set Deployed to False somewhere when I disable the Locator? If so, it's not clear where. – orome Oct 29 '12 at 20:43

1 Answers1

1

Maybe not the best solution but it exports.

nb = CreateDocument[{Manipulate[
     Show[ParametricPlot[
       BezierFunction[{{0, 0}, c1, {1, 1}}][x], {x, 0, 
        1}]], {{c1, {.2, .2}}, Locator}]}];
NotebookPrint[nb, "temp.pdf"]
s.s.o
  • 4,559
  • 2
  • 27
  • 42