# Inventory: Navigate a vertical Box Widget?

**URL:** <https://forums.unrealengine.com/t/inventory-navigate-a-vertical-box-widget/486967>\
**Category:** UI\
**Tags:** inventory, unreal-engine, function, Widget, question\
**Created:** [August 2, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/inventory-navigate-a-vertical-box-widget/486967 "2021-08-02T23:17:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tettey\_Nartey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tettey_nartey/32/882427_2.png) [@Tettey\_Nartey](https://forums.unrealengine.com/u/Tettey_Nartey)\
**Post date:** [August 2, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/inventory-navigate-a-vertical-box-widget/486967/1 "2021-08-02T23:17:06Z")

</div>

Not sure where to start off. I have a setup where a menu of items is placed in a vertical box which is inside of a Scrollbox.  
I want to navigate up and down the vertical box to see the items in the item list menu as in Outer Worlds or Witcher 3, etc…

I have a setup but there’s nothing in terms of navigating the menu. I also have a scrollbox but again, no setup.

 ![345409-image-2021-08-02-191519.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/3/b537e8f61a32ce491c7ca6fd405f97d9b804b39c.png)

 ![345410-vertical-box.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/3/2b365c9e4abcf53447535010ed2315b7cb586e0f.png)

The two functions Move up and Move down don’t do anything because I have not set anything up yet for them.

---

<div class="post-metadata">

**Author:** ![xulture](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xulture/32/921486_2.png) [@xulture](https://forums.unrealengine.com/u/xulture)\
**Post date:** [August 3, 2021, 11:22am UTC](https://forums.unrealengine.com/t/inventory-navigate-a-vertical-box-widget/486967/2 "2021-08-03T11:22:47Z")

</div>

Calculate where you want to move to, then tell scrollbox to scroll there, via SetScrollOffset

![345510-scrollbox.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/1/431c18b46e768f3cf05281e0dc84314bef496934.jpeg)

---

<div class="post-metadata">

**Author:** ![Tettey\_Nartey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tettey_nartey/32/882427_2.png) [@Tettey\_Nartey](https://forums.unrealengine.com/u/Tettey_Nartey)\
**Post date:** [August 4, 2021, 9:37pm UTC](https://forums.unrealengine.com/t/inventory-navigate-a-vertical-box-widget/486967/3 "2021-08-04T21:37:18Z")

</div>

Hello! So I managed to get it but in a different way.

It’s a bit much, but basically with the controller input I gathered all the children widgets within the vertical box, and put them in an array, and assigned the current index to a variable.  
That variable designates which index we are t, and therefore, the widget currently selected. I loosely based it off of a tutorial On menu widgets.

So far it works but I have to press a button twice in order to get the focus onto the vertical box before I can navigate it. So I now basically have to press up or down one more time before the cursor highlights the one I want highlighted.

 ![345559-image-2021-08-04-173511.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/c/9acab8ff7a8f1f19096fe4e6c0aef1eaa3b29619.png)

 ![345651-move-up-and-down-by-selecting-index-in-parent-widg.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/a/92a218fa76b2d925ef25b16e977fb73affa0da53.png)

 ![345560-image-2021-08-04-173658.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/d/47d434c9d9adfc35800c74019bb9afc88697f34f.png)

---

<div class="post-metadata">

**Author:** ![Tettey\_Nartey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tettey_nartey/32/882427_2.png) [@Tettey\_Nartey](https://forums.unrealengine.com/u/Tettey_Nartey)\
**Post date:** [August 7, 2021, 3:39pm UTC](https://forums.unrealengine.com/t/inventory-navigate-a-vertical-box-widget/486967/4 "2021-08-07T15:39:56Z")

</div>

Also I see the get parent is coming from the widget but may I ask where do I set this?
