MathGroup Archive 2008

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

Search the Archive

Re: Run initialization cells before dynamic cells

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94360] Re: Run initialization cells before dynamic cells
  • From: Albert Retey <awnl at gmx-topmail.de>
  • Date: Thu, 11 Dec 2008 03:44:23 -0500 (EST)
  • References: <200812081124.GAA15930@smc.vnet.net> <ghlmbc$jnt$1@smc.vnet.net> <gho39k$7j$1@smc.vnet.net>

Damon schrieb:
> Jose Luis Gomez wrote:
>> I think the solution to your problem is to use the options SaveDefinitions
>> inside Manipulate.
> 
> I'm not using Manipulate, I'm using Dynamic. (I would use Manipulate,
> but I want more control over the placement of controls, so I
> customized my own control panel. As far as I can tell, I can't use a
> customized control panel with Manipulate.)
> 
> However Dynamic[] doesn't recognize the SaveDefinitions option. I get
> an error box telling me "An unrecognized option name (SaveDefinitions)
> was encountered while reading a DynamicBox."
> 
> This sounds silly to me. The help page for SaveDefinitions says it is
> "an option to Manipulate and related functions", and what could more
> related to Manipulate than Dynamic? But there you go.
> 
> Any other suggestions, given that I can't use SaveDefinitions inside a
> Dynamic?

Hm, the documentation is not perfectly clear on this, but I think what
you need is the option Initialization, which Dynamic understands as well
as DynamicModule which you really should look at if you are looking for
an alternative to Manipulate with more control. Actually I think
Manipulate with SaveDefinitions-> True will just create a DynamicModule
with the Initialization option set appropriatly. Of course to enclose
all relevant definitions automtatically as Manipulate does you will need
some extra code...

You should be able to find some example usages of Dynamic and
DynamicModule with the Initialization-Option in the documentation...

hth,

albert


  • Prev by Date: Re: Parallel computing and JLink
  • Next by Date: Re: GraphicsGrid spacing
  • Previous by thread: Re: Run initialization cells before dynamic cells
  • Next by thread: Re: Run initialization cells before dynamic cells