MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Default Value for SetterBar

  • To: mathgroup at
  • Subject: [mg113759] Re: Default Value for SetterBar
  • From: Bob Hanlon <hanlonr at>
  • 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:


"7.0 for Mac OS X x86 (64-bit) (February 19, 2009)"

 {{x, Round[.35, .05], "My Variable"}, Range[.2, .5, .05]},
 ControlType -> SetterBar]

 {{x, .2 + 3*.05, "My Variable"}, Range[.2, .5, .05]},
 ControlType -> SetterBar]

Bob Hanlon

---- Gregory Lypny <gregory.lypny at> 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?




Bob Hanlon

  • Prev by Date: Set::pspec error in parallelized loop in Unix
  • Next by Date: Re: pause button for Dynamic?
  • Previous by thread: Default Value for SetterBar
  • Next by thread: Re: Default Value for SetterBar