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


Groups > comp.soft-sys.math.mathematica > #9087

Re: Clearing a Checkbox

From Scott Colwell <scolwell@uoguelph.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Clearing a Checkbox
Date 2012-03-16 11:36 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jjv8ko$pid$1@smc.vnet.net> (permalink)

Show all headers | View raw


That's great. Thank you.

----- Original Message -----
From: "Alexei Boulbitch" <Alexei.Boulbitch@iee.lu>
Cc: scolwell@uoguelph.ca
Sent: Thursday, 15 March, 2012 6:36:22 AM
Subject: 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@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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Clearing a Checkbox Scott Colwell <scolwell@uoguelph.ca> - 2012-03-16 11:36 +0000

csiph-web