Add scrollbars to menus

what?

A hidden primitive (not accessible even in dev mode) that was added for compatibility with Snap4Arduino projects, superseded by the S4A Connector library.

Where? Also, in that case you really don’t need it.

or something like this?


code
function(){
    var addMenu = {};
    for(var i of Object.getOwnPropertyNames(window)){
        if(typeof(window[i]) !== 'function' || !(window[i].prototype)) continue;
        let keepi = i;
        var func = ()=>{
                this.userSetContents(keepi);
            };
        addMenu[i]=i;
    }
    addMenu = this.menuFromDict(addMenu,true);
    var oldItems = addMenu.items;
    var strMorph = new StringFieldMorph();
    var prevText = '';
    strMorph.text.step = ()=>{
        if (strMorph.text.text !== prevText){
            if(strMorph.text.text == ''){
                addMenu.items = oldItems;
            }else{
                addMenu.items = [strMorph];
                for(var i of Object.getOwnPropertyNames(window)){
                    if(typeof(window[i]) !== 'function' || !(window[i].prototype)) continue;
                    if(!i.includes(strMorph.text.text)) continue;
                    let keepi = i;
                    var func = ()=>{
                        this.setContents(keepi);
                        };
                        addMenu.addItem(i,i);
                }
            }
            prevText=strMorph.text.text;
            addMenu.createItems();
        }
    };
    addMenu.items.unshift(strMorph);
    addMenu.createItems();
    addMenu.onPopUp = ()=>{
        this.world().activeMenu = null;
        
        strMorph.mouseClickLeft();
    };
    window.requestAnimationFrame(()=>
        addMenu.popUpAtHand(this.world())
    );
    return{};
}

Where am I supposed to paste your code in? An InputSlotMorph?

the menu options dialog or into a method of InputSlotMorph