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


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

Nesting Manipulate to Create a Variable Number of Controls

From Gregory Lypny <gregory.lypny@videotron.ca>
Newsgroups comp.soft-sys.math.mathematica
Subject Nesting Manipulate to Create a Variable Number of Controls
Date 2014-04-03 06:17 +0000
Message-ID <lhiucs$dic$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hello everyone,

I used the example in the Documentation Center to create a Manipulate with a variable number of controls. Here is the example:

Manipulate[
 With[{value = Table[c[i], {i, 1, n}], 
   controls = Sequence @@ Table[{c[i], 0, 1}, {i, 1, n}]}, 
  Manipulate[value, controls]], {n, 1, 10, 1}]

How would I change the code above so that it produces pairs on controls side by side? So if n=3, the control area would look like this.

nameMenu1    valueSlider1
nameMenu2    valueSlider2
nameMenu3    valueSlider3

Any tip would be much appreciated,

Gregory

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


Thread

Nesting Manipulate to Create a Variable Number of Controls Gregory Lypny <gregory.lypny@videotron.ca> - 2014-04-03 06:17 +0000

csiph-web