dynamic popupmenu help needed
- To: mathgroup at smc.vnet.net
- Subject: [mg98390] dynamic popupmenu help needed
- From: meitnik <meitnik at gmail.com>
- Date: Thu, 9 Apr 2009 05:50:19 -0400 (EDT)
hi 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}}; CreatePalette[ 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.