0
$\begingroup$

I am looking for a dialog box that opens like a ChoiceDialog but it allows me to choose multiple items from a list and returns that list like ChoiceDialog returns a single chosen value.

Possible control that can act as an interface to input multiple choice could be ListPicker. If there are others please suggest them as well.

Please provide an example since don't know how to use Dialog framework of mathematica.

$\endgroup$

1 Answer 1

2
$\begingroup$

Can't you also use CheckboxBar ?

enter image description here

Manipulate[ 
 mySelection[[n]],

 {{n, Range[4], "Choices"}, {1 -> "coffee", 2 -> "tea", 3 -> "sugar", 4 -> "cream"}, 
       ControlType -> CheckboxBar},
 TrackedSymbols :> {n}
 ,
 Initialization :> (mySelection = {"coffee", "tea", "sugar", "cream"})
 ]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.