(function() { load("Motif") X = XApplication("list") l = Widget("list","XmScrolledList",X@widget, realize=T) #objs = objects() #res = XResource("items", objects()) #res.selection.type = XResource("selectionPolicy","XmMULTIPLE_SELECT") #res.count = XResource("itemCount", as(length(objs),"integer")) # setResource(l,res.selection.type,res.count,res) setResource(l,selectionPolicy="MULTIPLE_SELECT", itemCount=length(objs),items=objects()) XRealize(X) invisible(return(X)) })()