i try to set up a drawableButton with different sized drawables for the different states ( shiny light around the on state image).
problem is that the drawables are always drawn in the upper left corner of the button area. i need them centred, otherwise the button ‘jumps around’ when activated. I had a look into the class inside the juce code and it seems when using ImageRaw there is no justification possible.
the doc says:
"This leaves it up to the caller to make sure the images are the correct size and position for the button. "
but the drawable class hast no methods to set it’s bounds. only way i can think of at the moment is the drawWithin method, but this is not called when using ImageRaw.
so how do i have to proceed if i need a drawableButton with centred, but not resized drawables?
any hints welcome!