Re: Manipulate with Wrapping SetterBars
- To: mathgroup at smc.vnet.net
- Subject: [mg80444] Re: Manipulate with Wrapping SetterBars
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 22 Aug 2007 04:53:29 -0400 (EDT)
- References: <fabgb6$i7i$1@smc.vnet.net>
I think I made an error in saying the SetterBar didn't wrap. It didn't wrap because I had the notebook set at a wide width. It wraps with respect to the width of the notebook. What I really wanted was to control the wrapping width. I found I could do this by abandoning Manipulate and going to DynamicModule. There the SetterBar can be set in a Pane, which will control the wrapping width. My opinion now is that Manipulate is all right for many quick and dirty displays, but for most custom dynamic displays one can spend too much time trying to make Manipulate format correctly and one should generally think in terms of DynamicModule. David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "David Park" <djmpark at comcast.net> wrote in message news:fabgb6$i7i$1 at smc.vnet.net... >I always find that there is a disconnect in the documentation in specifying > the operation of various ControlTypes in Manipulate. Various Control > elements have options but it is never quite clear how these options are to > be supplied to the Manipulate statement. > > So here is a simple case that has me stymied. I want to display a long > SetterBar and I want it to wrap to the size of the displayed expression. > But > I can't make the SetterBar wrap even though, according to the > documentation, > there is a SetterBar option that is suppose to make it wrap - and does for > one example. > > nvalues = Flatten[Table[{2, 3, 5, 7, 10} 10^i, {i, 0, 4}]]; > Manipulate[ > Row[{Text["The value of the parameter n used in this case is: "], > n}], > {{n, First[nvalues], "n: "}, nvalues, ControlType -> SetterBar, > Appearance -> "Row"}] > > I don't think the Appearance->"Row" option is even being picked up. > > And even if it does get picked up, how can I control the wrapping width of > the SetterBar? > > Thanks for any help. > > -- > David Park > djmpark at comcast.net > http://home.comcast.net/~djmpark/ > > >