Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | combobox |
addonreturn | The requested behavior | ||
Allowed: | T or F |
f := frame() cb := combobox(f,'colors',"red blue green yellow amber saffron") cb.addonreturn(F) whenever cb.agent()->return do { newitem := $value if (newitem != cb.get('selected')) { # only add a new item if it isn't what is currently # selected cb.insert(newitem, select=T) # when added, insert it via current autoinsertorder # and select it } }