|
[Date Index]
[Thread Index]
[Author Index]
How to preserve a slider setting between notebook sessions?
- To: mathgroup at smc.vnet.net
- Subject: [mg89671] How to preserve a slider setting between notebook sessions?
- From: Hannes Kessler <HannesKessler at hushmail.com>
- Date: Tue, 17 Jun 2008 00:38:33 -0400 (EDT)
Hello,
is it possible to preserve the value of a global dynamic variable in a
slider between different notebook sessions?
At the beginning of a notebook, I have some sliders (or other elements
as popup menues etc.) for quick modifications of the dynamic variables
to be used further in the notebook calculations. However, the slider
settings are always lost between different notebook sessions which is
inconvenient.
Embedding the slider in a DynamicModule preserves the seetting between
different sessions, but then, the dynamic slider variables cannot be
referenced outside the dynamic module.
Here are 2 examples:
{Slider[Dynamic[t1]], Dynamic[t1]} --> slider position is lost between
sessions
DynamicModule[{t2}, {Slider[Dynamic[t2]], Dynamic[t2]}] --> slider
variable cannot be used in the notebook outside the dynamic module
Best regards,
Hannes Kessler
Prev by Date:
Mathematica as an OPC Client
Next by Date:
Re: Problems with FindRoot and recursive functions
Previous by thread:
How to preserve a slider setting between notebook sessions?
Next by thread:
Mathematica as an OPC Client
|