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


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

Re: How Can I Include a Button in a Manipulate

From Gregory Lypny <gregory.lypny@videotron.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How Can I Include a Button in a Manipulate
Date 2011-07-22 23:50 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j0d2c2$s1c$1@smc.vnet.net> (permalink)
References <5165123.71643.1311294303544.JavaMail.root@m06>

Show all headers | View raw


Thank you, David.  I will check it out.  Where can I find the Presentations application?

Gregory



On Thu, Jul 21, 2011, at 8:59 PM, David Park wrote:

> Gregory,
> 
> I'm not certain how easy it is to do with Manipulate, but it is certainly
> possible to do it with a custom dynamic display. I find custom dynamic
> displays much easier to write because you can format them any way you wish
> without having to override defaults.
> 
> The Presentations application, in the PlaneGeometry section, has a tutorial
> that shows how to write custom dynamics, including one example with a button
> that performs an action on the displayed dynamic.
> 
> The trick is to think of primary dynamic variables (operated by controls)
> and secondary dynamic variables that depend on the primary variables. Write
> a routine, or routines, that calculate the secondary variables from the
> primary variables. Invoke these by using the second argument in the Dynamic
> statement. The random number could be an initially set primary variable. The
> button could then regenerate it and recalculate all the secondary variables.
> 
> 
> David Park
> djmpark@comcast.net
> http://home.comcast.net/~djmpark/  
> 
> 
> 
> 
> From: Gregory Lypny [mailto:gregory.lypny@videotron.ca] 
> 
> 
> Hello everyone,
> 
> I have a Manipulate that generates a random integer or integers 
> depending on the user's choice of parameters in a number of setter 
> bars.  I'd like to include a button in the Manipulate's output pane 
> that allows the user to generate a new result by generating a new random 
> number while keeping all of the parameters in the setter bar the same.  
> Can that be done?
> 
> 
> Regards,
> 
> Gregory
> 

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


Thread

Re: How Can I Include a Button in a Manipulate Gregory Lypny <gregory.lypny@videotron.ca> - 2011-07-22 23:50 +0000

csiph-web