MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

dynamic popupmenu help needed

  • To: mathgroup at
  • Subject: [mg98390] dynamic popupmenu help needed
  • From: meitnik <meitnik at>
  • Date: Thu, 9 Apr 2009 05:50:19 -0400 (EDT)


I can't figure out how to get the second popup to insert into a the
cell where the insertion cursor is:

f[e_] := Switch[e, "hey", 1, "you", 2, "now", 3];
stuff = {{"a", "1", "r"}, {"b", "ee", "23"}, {0}};
 PopupMenu[Dynamic[x], {"hey", "you", "now"}]
  Dynamic@PopupMenu[Dynamic[y], stuff[[f[x]]]]]
NotebookApply[InputNotebook[], Dynamic[y]]

please any suggestions? Any rewrites welcomed. Sure wish hierarchical
menus were supported ;-p
thank you.

  • Prev by Date: Re: Computing resources
  • Next by Date: Re: how to build pattern for a square matrix of reals?
  • Previous by thread: Re: Show[list] does not work - details of the script
  • Next by thread: Re: dynamic popupmenu help needed