Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3926 > unrolled thread
| Started by | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| First post | 2011-07-22 23:50 +0000 |
| Last post | 2011-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.
Re: How Can I Include a Button in a Manipulate Gregory Lypny <gregory.lypny@videotron.ca> - 2011-07-22 23:50 +0000
| From | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| Date | 2011-07-22 23:50 +0000 |
| Subject | Re: 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 >
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web