Combobox to change background image of plugin
-
This is probably super simple, but what would be the simplest way to change a background image with a combo box?
-
@ThinkTank
You can use the Paint routine for panels. For most other things, use Look and Feel. Draw the background image based on the combo box selection (if-statement). You then integrate a repaint() function for the element to be drawn into the callback function of the combo box. -
Thanks, that helps! Slowly getting a hang for this!
-
@ThinkTank
You are welcome. :-) What do you want to use? A panel? A button? I could create a small snippet for you so that you have a starting point -
Already made it, but thanks anyway.
Just needed guidance on the simplest way -
@ThinkTank
Great! Then have a nice day! :-)