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


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

Re: Clearing a Checkbox

Started byScott Colwell <scolwell@uoguelph.ca>
First post2012-03-16 11:36 +0000
Last post2012-03-16 11:36 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

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

#9087 — Re: Clearing a Checkbox

FromScott Colwell <scolwell@uoguelph.ca>
Date2012-03-16 11:36 +0000
SubjectRe: Clearing a Checkbox
Message-ID<jjv8ko$pid$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web