MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: multiple selection control


On 2/18/2012 1:27 PM, axel wrote:
> I need a control object which enables the user to chose one or more
> items from a list. In pricipal, this can be done using a CheckboxBar.
> However, if the list is long this is not convenient, because the
> CheckboxBar becomes too large. It would be nice to have something like
> a PopupMenu, with an Option "MultipleSelection". How can I get such a
> widget?
>

How about a fixed-size, scrollable CheckboxBar?

Pane[
  CheckboxBar[Dynamic[x], Range[100], Appearance -> "Vertical"],
  ImageSize -> {All, 100}, Scrollbars -> {False, True},
  AppearanceElements -> None
]

-- 
Szabolcs Horvát
Visit Mathematica.SE:  http://mathematica.stackexchange.com/



  • Prev by Date: Re: FindRoot with a vector of unknowns
  • Next by Date: Re: Why HoldForm[] shows this expression in red in notebook?
  • Previous by thread: Re: multiple selection control
  • Next by thread: PopupWindow Problem