Here is another version with Paint Routine and Look & Feel
Content.makeFrontInterface(400, 200); const var Sampler1 = Synth.getSampler("Sampler1"); const var sampleMaps = Sampler.getSampleMapList(); //Look & Feel For Popup Styling const var laf = Engine.createGlobalScriptLookAndFeel(); laf.registerFunction("drawPopupMenuBackground", function(g, obj) { g.fillAll(Colours.blueviolet); // Create your own }); //popup Menu const var Shape = Content.getComponent("Shape"); const var ShapeLabel = Content.getComponent("ShapeLabel"); // Paint Routine Shape.setPaintRoutine(function(g) { g.fillAll(Colours.cadetblue); }); //Load Sample Maps & Change Text inline function onShapeControl(component, value) { ShapeLabel.set("text",Shape.get("popupMenuItems").split("\n")[value-1].substring(7, 15)); Sampler1.loadSampleMap(sampleMaps[value-1]); } Content.getComponent("Shape").setControlCallback(onShapeControl); Shape.setMouseCallback(function(event) { this.setValue(event.result); this.changed(); });