# How to make nested context menu.

**URL:** <https://forums.unrealengine.com/t/how-to-make-nested-context-menu/753953>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question, UMG\
**Created:** [January 21, 2023, 1:39am UTC](https://forums.unrealengine.com/t/how-to-make-nested-context-menu/753953 "2023-01-21T01:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bostonDownamics](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bostonDownamics](https://forums.unrealengine.com/u/bostonDownamics)\
**Post date:** [January 21, 2023, 1:39am UTC](https://forums.unrealengine.com/t/how-to-make-nested-context-menu/753953/1 "2023-01-21T01:39:33Z")

</div>

How do you make a nested context menu like in windows?

 ![qwfqggqfw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/5/bf565d281baeaedaf27c675c3fde4b71de201649.png)  
I’m guessing that I could create a new widget by the side and align it.  
But is there a more practical way of doing it? Does unreal already handle something like this?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [January 23, 2023, 9:51am UTC](https://forums.unrealengine.com/t/how-to-make-nested-context-menu/753953/2 "2023-01-23T09:51:59Z")

</div>

Hey there @bostonDownamics! This sounds like a job for menu anchors! This is generally how I’ve seen others handle context menus. I tend to make a new widget for mine, but with nested context menus it’s likely necessary to use the anchor. Hope this helps!

Menu anchors documentation:

> **[Menu Anchors](https://docs.unrealengine.com/5.1/en-US/using-menu-anchors-in-umg-for-unreal-engine/)**
>
> Information on using and setting Menu Anchors to keep Pop-up Menus in fixed locations.

Other resource thread:

> [@Is it possible to create context menu in UMG???](https://forums.unrealengine.com/t/is-it-possible-to-create-context-menu-in-umg/102928):
>
> Context menus are pretty standard part of any game or application, but i’m having a big problem to get it them to work. In theory it sounds easy, right click on some widget, and spawn a context menu widget on a mouse position. Well that part works perfectly well. The problem begins when you want to cancel the context menu. The way it should work is that if you click anywhere outside the context menu it should cancel the context menu. How would i do that so that it works even if i click on some …
