Adding SVG Icon Into the ComboBox DropDown Menu?
-
Hey music lovers, Hope All is well with you
Wondering is this possible to Add A Graphical Icon into The Combobox Menu?
I need to add Item Text, and an Icon next To Items.Any Advice is Much appreciated
-
Also Changing the Item Colors Can Work for me
//drawPopupMenuItem------------------------------------------------------------ laf.registerFunction("drawPopupMenuItem", function(g, obj) { var a = obj.area; var h = a[3]; if(obj.isSeparator) { return; } if(obj.isTicked) { g.setColour(0xFFff7800); g.fillEllipse([a[0] + h/3, a[1] + h/3, h/3, h/3]); } g.setFont("GUI-Barlow-Medium", 20.0); if(obj.isHighlighted) { g.setColour(0xFFff7800); g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left"); }else{ g.setColour(0xFF9d9d9d); g.drawAlignedText(obj.text, [a[0] + h, a[1], a[2] - h, a[3]], "left"); } }); //----------------------------------------------------------------------------------
-
@Natan I tried with simple SVG path.
I am curious to know more from here. Thank you for making a thread like this.