# Make a textbox using C++

**URL:** <https://forums.unrealengine.com/t/make-a-textbox-using-c/431363>\
**Category:** UI\
**Tags:** text, hud-class, unreal-engine, Collision, CPP, question\
**Created:** [August 10, 2018, 2:01pm UTC](https://forums.unrealengine.com/t/make-a-textbox-using-c/431363 "2018-08-10T14:01:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e621d48e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e621d48e](https://forums.unrealengine.com/u/anonymous_user_e621d48e)\
**Post date:** [August 10, 2018, 2:01pm UTC](https://forums.unrealengine.com/t/make-a-textbox-using-c/431363/1 "2018-08-10T14:01:29Z")

</div>

I’m trying to make a textbox that looks as such (using just C++):

 ![250084-ue4textc.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/5/d75d86b24098d174696e0cda348182d44d5fe60f.jpeg)

The way I’ve structured my class (_ComponentDescription_) is that I’ve got a file with the _Name_ and _Description_ of a component. (These strings/details are loaded into the class from said file when it’s instantiated) Upon collision with a particle emitted by the player, an instance of this class should appear on the HUD/UMG - i.e. a pop up message.

Could someone please answer this, or perhaps point me in the right direction? I’ve had a look at UTextBlock and it seems to be what I want, but I have no idea how I go about doing it…
