The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Making a palette to control dynamic variables?
Replies: 2   Last Post: Jan 14, 2013 11:28 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
John Fultz

Posts: 736
Registered: 12/7/04
Re: Making a palette to control dynamic variables?
Posted: Jan 14, 2013 12:00 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Paste the following into the help viewer search field:


and scroll down to the section on DynamicModule wormholes (it's at the very end of the document).

John Fultz
User Interface Group
Wolfram Research, Inc.

On Jan 11, 2013, at 9:25 PM, Brentt <> wrote:

> Hello,
> I'm trying to make a control interface for a graphic be in a separate
> window. I want those variables to dynamically interact with variables in
> the original session.
> I thought maybe opening up the palette within a dynamic module might work,
> but no such luck. Something is going on with the way variables are dealt
> with across notebooks I suppose, and I've been trying to find a workaround.
> I was thinking perhaps using NotebookGet and NotebookWrite, but, as far as
> I can tell, I then have to print those in a cell in the Notebook to fetch
> the variables, which seems undesirable performance wise (also perhaps using
> CellPrint prints the dynamic variable in the parent notebook, but I'm not
> sure how to turn that into a variable which I can use.)
> Is there a way to do this nicely?
> This was my attempt at creating a graphic with a locator in a palette with
> the values to be used in furthur computations in the "parent" notebook.
> DynamicModule[{x = {0, 0}},
> nb = DocumentNotebook[{
> Graphics[{Locator[Dynamic[x]]}, PlotRange -> ( {
> {-1, 1},
> {-1, 1}
> } ), Frame -> True]
> }];
> CreatePalette[nb];
> Dynamic@x
> ]
> But that x doesn't get the dynamically updated locator values from the
> palette.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.