How do I use LAF to draw the dropdown of a comboBox?
-
I have LAF drawing the front of the comboBox using
.registerFunction("drawComboBox", function(g, obj)
How do I draw the dropdown? Is it a separate draw function?
-
@VirtualVirgin drawPopupMenuItem if I remember correctly
-
@d-healey said in How do I use LAF to draw the dropdown of a comboBox?:
@VirtualVirgin drawPopupMenuItem if I remember correctly
Thanks :) That is the correct draw function.
Do you know how to edit the size of the popupMenu? -
@VirtualVirgin I just found this myself.
YourComboBox.registerFunction("getIdealPopupMenuItemSize", function(obj) { // this will set the width to 200 and height to 50 // adjust both params return [40, 20]; // sets the height to 30 // Uses "default" width and adjust height only //return 30; });
Choose one or the other obviously.
-
@Chazrox Thanks!!