# Keep "pressed" appearance focused when button is pressed

**URL:** <https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710>\
**Category:** UI\
**Tags:** hover, normal, unreal-engine, Widget, question\
**Created:** [February 12, 2017, 2:01pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710 "2017-02-12T14:01:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ab9546bd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ab9546bd1](https://forums.unrealengine.com/u/anonymous_user_ab9546bd1)\
**Post date:** [February 12, 2017, 2:01pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/1 "2017-02-12T14:01:52Z")

</div>

I’ve added some buttons to my Widget Hierarchy and I have changed their appearance/design in their respective categories: Normal, Hovered, Pressed.

My question is. I want the appearance of the button to keep its “Pressed” appearance even after the button is pressed. This is because I want to visually show that the button is active.

Can anyone please help me. I really think there should be a “Focused” input aswell.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86bb7543](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86bb7543](https://forums.unrealengine.com/u/anonymous_user_86bb7543)\
**Post date:** [February 12, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/2 "2017-02-12T17:30:52Z")

</div>

It shouldn’t be difficult. In the HUD or interface where you add. Uttons etc. There should be an option to choose the colour or the buttons with options when such as ‘pressed’, ‘not pressed’ (can’t exactly remember), just make sure to change the colour of the button to the same colour as when pressed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ab9546bd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ab9546bd1](https://forums.unrealengine.com/u/anonymous_user_ab9546bd1)\
**Post date:** [February 12, 2017, 5:56pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/3 "2017-02-12T17:56:57Z")

</div>

Hi, Thanks but I am not using the standard UE-button design and colors. I have customs assets. Change the color won’t be the way to do it in that scenario

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86bb7543](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86bb7543](https://forums.unrealengine.com/u/anonymous_user_86bb7543)\
**Post date:** [February 12, 2017, 6:50pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/4 "2017-02-12T18:50:21Z")

</div>

What does the ‘asset’ look like once it is pressed?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ab9546bd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ab9546bd1](https://forums.unrealengine.com/u/anonymous_user_ab9546bd1)\
**Post date:** [February 12, 2017, 8:20pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/5 "2017-02-12T20:20:21Z")

</div>

![126021-knormal2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/f/7cfa588f001eb6dd6e40a6b319274b75f6c75982.png)

![126023-kpressed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/a/1aa215894011d86214124debce981ada420c9743.png)

![126022-khover.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/6/7f688e5dfd4ec857fefae397ac51c5fae98cc043.png)

Please see attached photos. I want to keep the “kpressed”-image focused when pressed once. And to return to “Normal” as I click it again.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86bb7543](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86bb7543](https://forums.unrealengine.com/u/anonymous_user_86bb7543)\
**Post date:** [February 12, 2017, 9:07pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/6 "2017-02-12T21:07:41Z")

</div>

I’m presuming you’re using a sprite or some sort of variant for the button. If so can’t you just replaced the thrid image with the second?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ab9546bd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ab9546bd1](https://forums.unrealengine.com/u/anonymous_user_ab9546bd1)\
**Post date:** [February 12, 2017, 9:57pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/7 "2017-02-12T21:57:18Z")

</div>

That would work if I only had one image. I have several tabs on a row like the example above. If I replace the image they will all have the “Pressed”-image as Normal

---

<div class="post-metadata">

**Author:** ![vodkins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vodkins](https://forums.unrealengine.com/u/vodkins)\
**Post date:** [July 27, 2017, 9:12am UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/8 "2017-07-27T09:12:04Z")

</div>

Use Checkboxes instead of a Buttons for that purpose. Checkbox can remember its pressed state of course. So still this “Button”(Checkbox) is “pressed”(checked) - it keeps its state (color, image etc). When you press(uncheck) it again it returns to Normal state. To mask real Checkbox as Button just replace default Checkboxes states Styles with Buttons images you have. Also play with Padding and other align options to make CB looks like a button. Also you might need to use “Set Is Checked” or/and “Set Checked State” Nodes inside Widget Blueprint Graph to switch all your “Buttons” between each other (for example - when you “press” other “Button” you need the previous one that was “pressed” will become “unpressed” and etc).

---

<div class="post-metadata">

**Author:** ![cloganart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cloganart/32/759977_2.png) [@cloganart](https://forums.unrealengine.com/u/cloganart)\
**Post date:** [August 16, 2018, 9:11am UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/9 "2018-08-16T09:11:35Z")

</div>

How would one go about this with a dynamically generated series of checkboxes/“Buttons”? ! seem to be failing at it currently. 1

---

<div class="post-metadata">

**Author:** ![vodkins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vodkins](https://forums.unrealengine.com/u/vodkins)\
**Post date:** [August 16, 2018, 12:22pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/10 "2018-08-16T12:22:42Z")

</div>

Never tried that with dynamically generated widgets, sorry. I am just using that method with standard premade checkboxes-buttons in Menu…

---

<div class="post-metadata">

**Author:** ![Akif\_Akdemir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/akif_akdemir/32/757250_2.png) [@Akif\_Akdemir](https://forums.unrealengine.com/u/Akif_Akdemir)\
**Post date:** [March 22, 2019, 4:14pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/11 "2019-03-22T16:14:06Z")

</div>

I’m driving a car. I made a gas button. But once you hit the gas, it doesn’t go on. I want her to go as far as I can on the gas button. But I couldn’t solve the problem. Could you help

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b3128d97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b3128d97](https://forums.unrealengine.com/u/anonymous_user_b3128d97)\
**Post date:** [September 1, 2020, 11:31pm UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/12 "2020-09-01T23:31:43Z")

</div>

Use On clicked event, to change the color of the button, then use flipflop, to set it to normal if it’s pressed again.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_73301efb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_73301efb](https://forums.unrealengine.com/u/anonymous_user_73301efb)\
**Post date:** [September 2, 2020, 6:04am UTC](https://forums.unrealengine.com/t/keep-pressed-appearance-focused-when-button-is-pressed/384710/13 "2020-09-02T06:04:56Z")

</div>

I am simply utilizing that strategy with standard premade checkboxes-catches in Menu

> **[My Disney Experience : My Disney Experience login | My Disney Experience App -...](https://disneyhubportal.com/my-disney-experience/)**
>
> How is My Disney Experience useful? How is it more convenient? This question is very common when you book a vacation at Walt Disney Land, as it often pops
