MenuView inside Manipulate
- To: mathgroup at smc.vnet.net
- Subject: [mg88387] MenuView inside Manipulate
- From: dkr <dkrjeg at gmail.com>
- Date: Sat, 3 May 2008 06:19:23 -0400 (EDT)
(1) Grid[{{MenuView[{1,2}],Graphics[Rectangle[{0,0}]]}}]
(2) Manipulate[
Grid[{{MenuView[{1, 2}],
Graphics[Rectangle[{0, 0}]]}}], {item, {0}}, ControlType -> None]
(1) is a simple grid, and (2) simply embeds this grid in a "dummy"
Manipulate (i.e., the control variable does not enter the first arg of
the Manipulate, and the control is not explicitly displayed). When
one clicks on the popup menu in (1), the rectangle remains visible.
However, in (2), when one clicks on the popup menu, the rectangle
disappears, and only reappears when the mouse button is released. Is
this a bug? Does anyone know how one can keep the rectangle visible
in (2) when one clicks on the popup menu. (If TabView is substituted
for MenuView, the rectangle remains visible in both cases when a tab
is clicked.)
dkr
- Follow-Ups:
- Re: MenuView inside Manipulate
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: MenuView inside Manipulate