Re: Clearing a Checkbox
- To: mathgroup at smc.vnet.net
- Subject: [mg125514] Re: Clearing a Checkbox
- From: Scott Colwell <scolwell at uoguelph.ca>
- Date: Fri, 16 Mar 2012 06:34:44 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
That's great. Thank you.
----- Original Message -----
From: "Alexei Boulbitch" <Alexei.Boulbitch at iee.lu>
To: mathgroup at smc.vnet.net
Cc: scolwell at uoguelph.ca
Sent: Thursday, 15 March, 2012 6:36:22 AM
Subject: [mg125514] Re: Clearing a Checkbox
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.
What about this?
Panel[
Column[{
Row[{Checkbox[Dynamic[x]],Spacer[5],Dynamic[x]}],
Button["Clear checkbox",x=False]
}]
]
Have fun.
Alexei BOULBITCH , Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG
Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44
e-mail: alexei.boulbitch at iee.lu
--
Scott R. Colwell, Ph.D.
Associate Professor, Dept. of Mkt/Cons Studies
Adjunct Professor, Dept. of Psychology
MINS Building 201a
University of Guelph
Guelph, Ontario, Canada, N1G 2W1