Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6196 > unrolled thread

Re: Impossible to move objects in dynamic graphics

Started byChris Hill <chill@wolfram.com>
First post2011-11-05 09:50 +0000
Last post2011-11-05 09:50 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Impossible to move objects in dynamic graphics Chris Hill <chill@wolfram.com> - 2011-11-05 09:50 +0000

#6196 — Re: Impossible to move objects in dynamic graphics

FromChris Hill <chill@wolfram.com>
Date2011-11-05 09:50 +0000
SubjectRe: Impossible to move objects in dynamic graphics
Message-ID<j930tv$a95$1@smc.vnet.net>
At 06:03 AM 11/4/2011, nicolas@virtualdynamics.fr wrote:
>Since version 8 it is no more possible to move objects with dynamic
>positions in a dynamic graphics.
>
>For example in the graphics below, the text and the point can be
>moved :
>
>p = {-.5, 0}; q = {.5, 0}; {Dynamic@p, Dynamic@q}
>Graphics[{Text["TEXT", Dynamic[p]], AbsolutePointSize[10],
>   Point[Dynamic[q]]}, PlotRange -> 1]
>
>But not in that one which is just wrapped in a Dynamic
>
>Dynamic@Graphics[{Text["TEXT", Dynamic[p]], AbsolutePointSize[10],
>   Point[Dynamic[q]]}, PlotRange -> 1]
>
>I expect that to work. Is it a bug ? Or if something has been changed,
>how can I now get back to previous (good) behaviour ?
>
>Thanks
>
>Nicolas

You can restore the old behavior like this:

Dynamic@Style[
   Graphics[{Text["TEXT", Dynamic[p]], AbsolutePointSize[10],
     Point[Dynamic[q]]}, PlotRange -> 1], Editable -> True]

Editing content inside a Dynamic is generally not desirable so 
Dynamic will set Editable->False for it's contents.

Starting in version 8 graphics primitives can't be dragged when 
Editable is False, earlier versions allowed dragging.

Style[Graphics[{AbsolutePointSize[100], Point[{0, 0}]}, PlotRange -> 1],
  Editable -> False]

Chris Hill
Wolfram Research 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web