I’ve attached a working example file containing some controls functioning in a manipulate structure. The code produces a varying number of checkboxes. I’m looking for a way to place these checkboxes into a popup menu to save space. The ability to check more than one checkbox in the popup menu is required. I’ve attached the working file. Please advise, or direct me to something in the reference material. Much Thanks. G
Gerald,
a very simple way of doing so would be to place the whole Manipulate[] in a new extra notebook, i.e.:
CreateDocument[Manipulate[t,
Control[{{ lt, -20, "Start Temperature", ImageSize -> Tiny}, -40.0,
240.0, 10.0, ImageSize -> Tiny, Appearance -> "Labeled",
ControlPlacement -> Left}],
Control[{{ incr, 10, "Temp Increment", ImageSize -> Tiny}, 1, 50.0,
10.0, ImageSize -> Tiny, Appearance -> "Labeled",
ControlPlacement -> Left}],
Control[{{ ut, 120, "End Temp.", ImageSize -> Tiny}, -40.0, 240.0,
10.0, ImageSize -> Tiny, Appearance -> "Labeled",
ControlPlacement -> Left}],
Control@{{t, {}, ""},Table[loadcase -> ToString[loadcase] <> " deg C", {loadcase, lt, ut,
incr}], ControlType -> CheckboxBar, Appearance -> ("Vertical"),
ControlPlacement -> Bottom, Appearance -> "Labeled"}],
WindowTitle -> "Please Input Values", WindowSize -> All];
Does that fit your needs? Regards – Henrik
I don’t think this is what I’m looking for but thanks for the suggestion. Looking at other options I’m thinking a PopupMenu might work but can more than one selection be made into a pick list from the list displayed?
Not great, …
values = Table[Quantity[loadcase, "DegreesCelsius"], {loadcase, -20, 120, 10}];
temps =.
{TogglerBar[Dynamic[temps], values, Appearance -> "Horizontal" -> {Automatic, 5}],
Dynamic@temps}