Hi all. I'm a newbie trying to construct a graphical control and have a relatively simple question. The code below works well enough to illustrate the idea but is obviously not ready for prime time. Underlying this is a general question about arrays of graphical elements: there seem to be tons of examples of graphics similar to this, from Grid to GraphicsColumn to MatrixPlot and so on. Can anyone point me to a discussion of these similar but different elements, when and why one might choose one approach over another?
Problem 1: the entire control reformats on mouseover. What I'd prefer is for the PopupMenu to pop up in a layer over the rest of the control so that the control itself doesn't reformat.
Problem 2: the bounding boxes kinda look right but it's not really a grid of squares as it would be with something like a Grid of Button.
Thanks in advance! Allan
Code:
(*MyPopupMenu*)
MyPopupMenu[val_] :=
Mouseover[val,
PopupMenu[x, {"same", "menu", Delimiter, "for each box"},
"click to choose"]];
MakeColumn[name_, values_] :=
Column[{Column[{Rotate[name, Pi/2]}],
Column[MyPopupMenu[#] & /@ values,
Background -> {Red, Green, Blue}]}, BaselinePosition -> Bottom];
Row[{MakeColumn["good_morning", {1, 2, 3}],
MakeColumn["frens", {"!", "@", "#"}],
MakeColumn["omg_ponies", {9, 8, 7}]}]