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


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

Re: How Can I Include a Button in a Manipulate

Started byGregory Lypny <gregory.lypny@videotron.ca>
First post2011-07-22 23:50 +0000
Last post2011-07-22 23:50 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#3926 — Re: How Can I Include a Button in a Manipulate

FromGregory Lypny <gregory.lypny@videotron.ca>
Date2011-07-22 23:50 +0000
SubjectRe: How Can I Include a Button in a Manipulate
Message-ID<j0d2c2$s1c$1@smc.vnet.net>
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
> 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web