Navigation
Synopsis An interactive combo box.
Function Figure combo(list[str] choices, void(str s) ccallback, FProperty props...)
Description Presents a combo box with a list of named choices to the user. When the user selects one of them, callback ccallback is called with that choice as argument.
Examples
public Figure comboTest(){
  str state = "A";
  return vcat([ combo(["A","B","C","D"], void(str s){ state = s;}),
                text(str(){return "Current state: " + state ;}, left())
              ]);
}
render(comboTest());
combo1
Pitfalls Due to limitations in SWT this does not behave correctly when being placed over or under figures, so do not use them in overlay or mouseOver.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.