MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Version 7 Cursor for Locators

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93913] Re: Version 7 Cursor for Locators
  • From: "sjoerd.c.devries at gmail.com" <sjoerd.c.devries at gmail.com>
  • Date: Fri, 28 Nov 2008 05:09:37 -0500 (EST)
  • References: <gglsst$8g0$1@smc.vnet.net>

David,

Not much to say other than that I can reproduce the reported
behaviour. I concur with you that this behaviour is not desriable.

Cheer -- Sjoerd

On Nov 27, 12:30 pm, "David Park" <djmp... at comcast.net> wrote:
> Version 7 has introduced a new cursor type in graphics (at least) that I
> will call a 'movable' cursor. It consists of a regular arrow outline with
> the addition of a set of very small up/down/left/right arrows near the ta=
il.
> I don't know if the documentation gives any information on this but I
> surmise that the purpose is to show when the cursor is over a movable
> Locator object. That is pretty useful, but I think there is a problem wit=
h
> it.
>
> The 'movable' cursor doesn't show if the graphics consists of nothing but=
 a
> single Locator. It shows when we have a Locator plus any other graphical
> element(s).
>
> The following contains two Locators, a Line between them, and a midpoint.
> The 'movable' cursor displays only over the Locators and not over the Lin=
e
> or Point. This must be the intended and proper behavior.
>
> DynamicModule[{pt1 = {-4, -4}, pt2 = {4, 4}},
>
>  Graphics[
>
>   {Dynamic@
>
>     {Line[{pt1, pt2}],
>
>      AbsolutePointSize[5],
>
>      Point[(pt1 + pt2)/2]},
>
>    Locator[Dynamic[pt1]],
>
>    Locator[Dynamic[pt2]]},
>
>   PlotRange -> 10,
>
>   Frame -> True,
>
>   ImageSize -> 200]
>
>  ]
>
> But if we Deploy the Graphics display, by any of the available methods, t=
he
> 'movable' cursor no longer works properly, but displays over ALL graphica=
l
> elements.
>
> DynamicModule[{pt1 = {-4, -4}, pt2 = {4, 4}},
>
>  Deploy@Graphics[
>
>    {Dynamic@
>
>      {Line[{pt1, pt2}],
>
>       AbsolutePointSize[5],
>
>       Point[(pt1 + pt2)/2]},
>
>     Locator[Dynamic[pt1]],
>
>     Locator[Dynamic[pt2]]},
>
>    PlotRange -> 10,
>
>    Frame -> True,
>
>    ImageSize -> 200]
>
>  ]
>
> This is unfortunate because the 'movable' cursor type is a feature that
> conveys useful information, and it is also a nice technique to Deploy
> dynamic displays.
>
> David Park
>
> djmp... at comcast.net
>
>  <http://home.comcast.net/~djmpark>http://home.comcast.net/~djmpark



  • Prev by Date: Re: Mathematica 7: Histogram Y-axis range?
  • Next by Date: Re: Mathematica 7: PieChart: opacity of a sector label
  • Previous by thread: Version 7 Cursor for Locators
  • Next by thread: Re: Solve this differential equation with periodic boundary conditions: