Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9052
| From | David Reiss <dbreiss@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Clearing a Checkbox |
| Date | 2012-03-15 05:33 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jjrv00$9c9$1@smc.vnet.net> (permalink) |
| References | <jjpb15$p50$1@smc.vnet.net> |
Make the parameter that you are working with a Dynamic variable in the
checkbox expression. But do not use a parameter named "Positive" as
that is a reserved Mathematica System parameter.
Eg:
Row[{Checkbox[Dynamic[x]], Button["reset", x = False]}]
--David
On Mar 14, 1:40 am, Scott Colwell <scolw...@uoguelph.ca> wrote:
> Suppose you have a checkbox as:
>
> {{Positive, False, "Positive View"}, {False, True}},
>
> Once the checkbox has been checked, is there a way of creating another bu=
tton that will clear the checkbox? Something like this....
>
> Button["Clear", {Positive = False}]}]
>
> ...which seems logical, doesn't work.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Clearing a Checkbox Scott Colwell <scolwell@uoguelph.ca> - 2012-03-14 05:40 +0000 Re: Clearing a Checkbox David Reiss <dbreiss@gmail.com> - 2012-03-15 05:33 +0000
csiph-web