Message Boards Message Boards

Manipulate with multiple control pages

Posted 1 year ago
  1. I wonder if it is possible to build a Manipulate object which has multiple 'pages' of 'controls'. This Ould be useful when the user has to input a large amount of inputs and would offer the option to group said inputs thematically.

  2. Is it possible to embed a Manipulate Object in a Palette? The Palette functionality would be restricted only to a certain underlying package.

POSTED BY: Fulvio Spagna
Posted 1 year ago

Here is an example for your first question:

Manipulate[
  Graphics[Polygon@{p1,p2,p3,p4},PlotRange->{{-10,10},{-10,10}}],
  {{controls,1},{1->"p1, p2",2->"p3, p4"}},
  Dynamic@Switch[controls,
  1,
    Row[{
      Control@{{p1,{-5,-5}},{-10,-10},{10,10}},
      Control@{{p2,{5,-5}},{-10,-10},{10,10}}
    },Spacer@20],
  2,
    Row[{
      Control@{{p3,{5,5}},{-10,-10},{10,10}},
      Control@{{p4,{-5,5}},{-10,-10},{10,10}}
    },Spacer@20]
  ],
  AppearanceElements->None
]
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract