# ImageButton & DrawableButton

**URL:** <https://forum.juce.com/t/imagebutton-drawablebutton/1884>\
**Category:** General JUCE discussion\
**Created:** [July 9, 2007, 2:02pm UTC](https://forum.juce.com/t/imagebutton-drawablebutton/1884 "2007-07-09T14:02:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grossebete](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grossebete](https://forum.juce.com/u/grossebete)\
**Post date:** [July 9, 2007, 2:02pm UTC](https://forum.juce.com/t/imagebutton-drawablebutton/1884/1 "2007-07-09T14:02:14Z")

</div>

Hi,

I’m a bit puzzled by the graphical button classes:

- DrawableButton::setImages takes eight drawables (normal, over, down, disabled, normalOn, overOn, downOn, disabledOn) and honors the toggleState of the button in its drawing code.

- ImageButton::setImages takes three images (over, down & normal), plus extra overlay parameters, and does not honor the toggleState of the button in the drawing code.

Is there a simple way, other than subclassing ImageButton to get an image button that displays visual feedback when its toggleState changes?

Thanks.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 9, 2007, 2:17pm UTC](https://forum.juce.com/t/imagebutton-drawablebutton/1884/2 "2007-07-09T14:17:44Z")

</div>

You could create a DrawableButton with some DrawableImage objects?..

---

<div class="post-metadata">

**Author:** ![grossebete](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grossebete](https://forum.juce.com/u/grossebete)\
**Post date:** [July 9, 2007, 2:30pm UTC](https://forum.juce.com/t/imagebutton-drawablebutton/1884/3 "2007-07-09T14:30:23Z")

</div>

Yes, well…

I kinda liked ImageButton simplicity…

I really don’t need eight abstract images and an AffineTransform in my case …

ImageButton does precisely what I need, except that it doesn’t show a different image when toggled.

Thanks anyway 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 3:13pm UTC](https://forum.juce.com/t/imagebutton-drawablebutton/1884/4 "2017-05-12T15:13:28Z")

</div>


