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


Groups > comp.soft-sys.math.mathematica > #2150

How can I set a dynamic global via a Locator

From "Christopher O. Young" <cy56@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject How can I set a dynamic global via a Locator
Date 2011-05-07 10:23 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iq36if$dsl$1@smc.vnet.net> (permalink)

Show all headers | View raw


This works, outputting the value set by the draggable locator point. But I
have to initialize s as a point first. I'm not sure why.

s = {0, 0}

Dynamic[s]


Graphics[
 Locator[Dynamic[s]]
]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

How can I set a dynamic global via a Locator "Christopher O. Young" <cy56@comcast.net> - 2011-05-07 10:23 +0000

csiph-web