|
[Date Index]
[Thread Index]
[Author Index]
Re: How to make make a Dynamic variable to become an ordinary one
- To: mathgroup at smc.vnet.net
- Subject: [mg109359] Re: How to make make a Dynamic variable to become an ordinary one
- From: John Fultz <jfultz at wolfram.com>
- Date: Fri, 23 Apr 2010 03:49:01 -0400 (EDT)
If you use SelectionMove[] to make sure the Dynamic thing is selected, then you
can evaluate the following code:
FrontEndExecute[
FrontEnd`NotebookDynamicToLiteral[NotebookSelection[nb]]]
where nb is the appropriate NotebookObject. This will literalize *everything*
in the selection, which includes not just Dynamics, but also counters.
You could also literalize an entire notebook using this formulation...
FrontEndExecute[FrontEnd`NotebookDynamicToLiteral[nb]]
Sincerely,
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.
On Thu, 22 Apr 2010 03:31:27 -0400 (EDT), Alexei Boulbitch wrote:
> Dear Community,
>
> I have an interactive program, where I am using a Dynamic variable. In
> some point I would like to transform this variable to an ordinary one
> (e.g. I would like that the variable does not change dynamically any
> more). Such an operation can easily be done by Menu/Evaluation/Convert
> dynamic to literal. I would like however, to do the same
> programmatically (say, upon pressing a Button). What command does the
> job?
>
> Best, Alexei
Prev by Date:
Re: Positions of Polynomials in expr?
Next by Date:
Re: Find (cyclic) Sequence
Previous by thread:
How to make make a Dynamic variable to become an ordinary one
Next by thread:
Re: How to make make a Dynamic variable to become an ordinary one
|