![]() |
|
Navigation |
Synopsis Interactive text entry field.
Function
Description A textfield in which the user can enter text:
Examples
public Figure tfield(){ str entered = ""; return vcat([ box(textfield("", void(str s){ entered = s;}, fillColor("yellow")), fillColor("yellow")), text(str(){return "entered: <entered>";}, left()) ]); } render(tfield()); ![]()
Pitfalls Unfortunately we cannot show an interactive version of the above example here.
Try it out in Rascal itself.
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. ![]() |