# SButton IsEnabled doesn't take the Disabled button style

**URL:** <https://forums.unrealengine.com/t/sbutton-isenabled-doesnt-take-the-disabled-button-style/334657>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, question, CPP\
**Created:** [October 8, 2015, 1:01pm UTC](https://forums.unrealengine.com/t/sbutton-isenabled-doesnt-take-the-disabled-button-style/334657 "2015-10-08T13:01:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![domzorg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/domzorg/32/906605_2.png) [@domzorg](https://forums.unrealengine.com/u/domzorg)\
**Post date:** [October 8, 2015, 1:01pm UTC](https://forums.unrealengine.com/t/sbutton-isenabled-doesnt-take-the-disabled-button-style/334657/1 "2015-10-08T13:01:53Z")

</div>

Hello,

I have a simple SButton in a widget.  
When I set the IsEnabled to false, the button isn’t using the Disabled image defined in FButtonStyle.

```
// The button style used    
FButtonStyle ActionButtonStyle;

// In the widget
    SNew(SKActionButton)
    .IsEnabled(false)
    .ButtonStyle(&ActionBarStyle->ActionButtonStyle)

```

It should be a bug, since the Hover and Pressed image is well taken from the style.

Is there another member var to set for disabling a SButton ?

D.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [October 16, 2015, 6:43pm UTC](https://forums.unrealengine.com/t/sbutton-isenabled-doesnt-take-the-disabled-button-style/334657/2 "2015-10-16T18:43:41Z")

</div>

Hi domzorg,

Thank you for pointing this out. This was [reported previously](https://answers.unrealengine.com/questions/289445/49p4-umg-disabled-style-is-not-used-for-button.html) in 4.9, and we already have a ticket in place to investigate it (UE-20316). I have updated the ticket to reflect your additional information.

---

<div class="post-metadata">

**Author:** ![domzorg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/domzorg/32/906605_2.png) [@domzorg](https://forums.unrealengine.com/u/domzorg)\
**Post date:** [October 19, 2015, 5:17am UTC](https://forums.unrealengine.com/t/sbutton-isenabled-doesnt-take-the-disabled-button-style/334657/3 "2015-10-19T05:17:51Z")

</div>

Thank you for your answer.
