Skip to main content
added 6 characters in body
Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

Wrap TogglerBar with Pane and use desired settings for ImageSize and Scrollbars:

selectionDialog[list_] := 
 DialogInput[{choice = {}}, 
  Column[{Row[{"Do something:"}], 
    Pane[TogglerBar[Dynamic[choice], list, Appearance -> "Vertical"], 
     ImageSize -> {100Automatic, 300}, Scrollbars -> {False, True}], 
    Button["OK", DialogReturn[choice]]}]]

list = Table["Phrase" <> (i // ToString), {i, 1, 100, 1}];

selectionDialog[list]

enter image description hereenter image description here

Wrap TogglerBar with Pane and use desired settings for ImageSize and Scrollbars:

selectionDialog[list_] := 
 DialogInput[{choice = {}}, 
  Column[{Row[{"Do something:"}], 
    Pane[TogglerBar[Dynamic[choice], list, Appearance -> "Vertical"], 
     ImageSize -> {100, 300}, Scrollbars -> {False, True}], 
    Button["OK", DialogReturn[choice]]}]]

list = Table["Phrase" <> (i // ToString), {i, 1, 100, 1}];

selectionDialog[list]

enter image description here

Wrap TogglerBar with Pane and use desired settings for ImageSize and Scrollbars:

selectionDialog[list_] := 
 DialogInput[{choice = {}}, 
  Column[{Row[{"Do something:"}], 
    Pane[TogglerBar[Dynamic[choice], list, Appearance -> "Vertical"], 
     ImageSize -> {Automatic, 300}, Scrollbars -> {False, True}], 
    Button["OK", DialogReturn[choice]]}]]

list = Table["Phrase" <> (i // ToString), {i, 1, 100, 1}];

selectionDialog[list]

enter image description here

Source Link
kglr
  • 400.5k
  • 18
  • 488
  • 929

Wrap TogglerBar with Pane and use desired settings for ImageSize and Scrollbars:

selectionDialog[list_] := 
 DialogInput[{choice = {}}, 
  Column[{Row[{"Do something:"}], 
    Pane[TogglerBar[Dynamic[choice], list, Appearance -> "Vertical"], 
     ImageSize -> {100, 300}, Scrollbars -> {False, True}], 
    Button["OK", DialogReturn[choice]]}]]

list = Table["Phrase" <> (i // ToString), {i, 1, 100, 1}];

selectionDialog[list]

enter image description here