Re: Default Value for SetterBar
- To: mathgroup at smc.vnet.net
 - Subject: [mg113759] Re: Default Value for SetterBar
 - From: Bob Hanlon <hanlonr at cox.net>
 - Date: Wed, 10 Nov 2010 06:31:20 -0500 (EST)
 
There appears to be some form of precision issue with the starting value. The following work on my system:
$Version
"7.0 for Mac OS X x86 (64-bit) (February 19, 2009)"
Manipulate[x,
 {{x, Round[.35, .05], "My Variable"}, Range[.2, .5, .05]},
 ControlType -> SetterBar]
Manipulate[x,
 {{x, .2 + 3*.05, "My Variable"}, Range[.2, .5, .05]},
 ControlType -> SetterBar]
Bob Hanlon
---- Gregory Lypny <gregory.lypny at videotron.ca> wrote: 
=============
Hello everyone,
I have a default value for a variable, x, in a Manipulate.  It uses a setter bar.
	{x, .35, "My Variable"}, Range[.2, .5, .05], ControlType -> SetterBar}
But unlike a slider whose thumb position moves to the default value when the Manipulate is first opened, the default value on the setter bar is not highlighted.  How can I get it to highlight so that users know where they are starting?
Regards,
Gregory
--
Bob Hanlon