2
$\begingroup$

Consider some list:

list = {"A","B","C","D"}

How to select only particular values from it using a dynamic dialog window that prevents the code below it from evaluating before the choice is made (by using e.g. DialogInput)?

$\endgroup$

1 Answer 1

5
$\begingroup$

You can use TogglerBar.

selectionDialog[list_] := 
 DialogInput[{choice = {}}, 
  Column[{TogglerBar[Dynamic[choice], list], 
    Button["OK", DialogReturn[choice]]}]]

list = {"A", "B", "C", "D"};
selectionDialog[list]
$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.