Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9013 > unrolled thread
| Started by | Scott Colwell <scolwell@uoguelph.ca> |
|---|---|
| First post | 2012-03-14 05:40 +0000 |
| Last post | 2012-03-15 05:33 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | Scott Colwell <scolwell@uoguelph.ca> |
|---|---|
| Date | 2012-03-14 05:40 +0000 |
| Subject | Clearing a Checkbox |
| Message-ID | <jjpb15$p50$1@smc.vnet.net> |
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 button that will clear the checkbox? Something like this....
Button["Clear", {Positive = False}]}]
...which seems logical, doesn't work.
[toc] | [next] | [standalone]
| From | David Reiss <dbreiss@gmail.com> |
|---|---|
| Date | 2012-03-15 05:33 +0000 |
| Message-ID | <jjrv00$9c9$1@smc.vnet.net> |
| In reply to | #9013 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web