Re: Hide a PopupMenu in Manipulate
- To: mathgroup at smc.vnet.net
- Subject: [mg86955] Re: Hide a PopupMenu in Manipulate
- From: ragfield <ragfield at gmail.com>
- Date: Thu, 27 Mar 2008 08:17:51 -0500 (EST)
- References: <fsa5ff$adl$1@smc.vnet.net> <fsd6h0$9b3$1@smc.vnet.net>
A colleague suggested using PaneSelector to hide the popup menu when it's not in use: Manipulate[ Graphics[{If[color, c, Black], Circle[{0, 0}, 1]}, ImageSize -> {400, 400}], {{color, True, "color on"}, {True, False}}, Item[ PaneSelector[ {True -> Row[{ "select color", PopupMenu[ Dynamic@c, {Red -> "red", Blue -> "blue", Green -> "green"}] }, Spacer[3]], False -> "" }, Dynamic@color ] ], {{c, Red}, {Red, Blue, Green}, ControlType -> None}, ControlPlacement -> Left] -Rob