# DrawableButton honoring Shape

**URL:** <https://forum.juce.com/t/drawablebutton-honoring-shape/9852>\
**Category:** General JUCE discussion\
**Created:** [January 19, 2013, 9:03pm UTC](https://forum.juce.com/t/drawablebutton-honoring-shape/9852 "2013-01-19T21:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordcoder](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gordcoder](https://forum.juce.com/u/gordcoder)\
**Post date:** [January 19, 2013, 9:03pm UTC](https://forum.juce.com/t/drawablebutton-honoring-shape/9852/1 "2013-01-19T21:03:32Z")

</div>

On the forum back in '05, Jules mentioned that DrawableButton would “ultimately take over from ImageButton and ShapeButton.”

Is there a way to get a DrawableButton to honor it’s custom shape as far as mouse clicks go? Currently, it seems that the outer rect which  
encloses the custom shape is used to determine mouse hits. I’m wondering if there is a way to get a DrawableButton to act like  
a ShapeButton in this regard.
