# No read-only option in 'Text Box (Multi-line)'

**URL:** <https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031>\
**Category:** UI\
**Tags:** text-box, text, unreal-engine, question, UMG\
**Created:** [January 16, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031 "2017-01-16T15:28:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [January 16, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/1 "2017-01-16T15:28:38Z")

</div>

In a ‘Text Box (Multi-line)’ object in UMG, there are appearance parameters for ‘when the box is read-only’. However, there is no way to make it read-only.

Setting it to disabled is not a valid work-around as that makes the text grey, i.e. it ignores the ‘when the box is read-only’ appearance parameters.

PS The ‘Editable Text’ object has a read-only setting but this object is no good for my purposes.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [January 16, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/2 "2017-01-16T18:51:26Z")

</div>

I don’t see any way to make it read-only, either.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 17, 2017, 2:43pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/3 "2017-01-17T14:43:11Z")

</div>

Hello Bob3DGames,

I have written up a request and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the link provided for future updates. As far as a workaround. I would suggest wrapping your text box in an overlay and then place an image with an opacity of 0 over it. Thank you for your time and information.

Link: [Unreal Engine Issues and Bug Tracker (UE-40720)](https://issues.unrealengine.com/issue/UE-40720)

Make it a great day

---

<div class="post-metadata">

**Author:** ![t0b4cc0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@t0b4cc0](https://forums.unrealengine.com/u/t0b4cc0)\
**Post date:** [January 24, 2017, 7:30pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/4 "2017-01-24T19:30:15Z")

</div>

You can set its visibility to [Hit Test Invisible]

For me this did exactly what I wanted on a editable text (the one liner version tho)

---

<div class="post-metadata">

**Author:** ![t0b4cc0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@t0b4cc0](https://forums.unrealengine.com/u/t0b4cc0)\
**Post date:** [January 24, 2017, 7:32pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/5 "2017-01-24T19:32:30Z")

</div>

You can set its visibility to [Hit Test Invisible].

For me this did exactly what I wanted on a editable text.

Depending on the desired behavior this can do exactly what you want.

---

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [January 27, 2017, 2:41pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/6 "2017-01-27T14:41:28Z")

</div>

That might be enough. However, it would be preferable for it to be possible for the user to select and copy text. This means it needs to be read only, rather than blocked from clicking completely.

For now, I’ll use your suggestion though, so thanks for that. I should have thought of it myself!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [March 5, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/7 "2017-03-05T17:30:11Z")

</div>

Thanks , This would be perfect for a pause menu stats board. It would look exactly like GTA 5’s player stats menu if you have ever seen that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [March 5, 2017, 7:24pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/8 "2017-03-05T19:24:54Z")

</div>

This worked for me, see image attached. I only set Multi Text field to Hit Test Invisible, the scroll box is still visible so i can go up and down. Thank you!

 ![128768-noneditable.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/3/3430d088681ef1801c2f8ae434ccdb62589a5a71.png)

---

<div class="post-metadata">

**Author:** ![EniGmaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EniGmaa](https://forums.unrealengine.com/u/EniGmaa)\
**Post date:** [April 11, 2017, 4:55pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/9 "2017-04-11T16:55:25Z")

</div>

hi i came across same problem , the multiline text box was used to display chat messages but then i realised players could click on the text box and change all the mesages .

you can overide a function and handle the events yourself

 ![133833-image2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/8/a38b02a6c2239521c4f0cfbe03f2a49e884bf838.png)

ok so in youre widget override the function OnPreviewKeyDown  
in this function get a reference to the textbox then do a check to see if it has focus then handle the events

 ![133834-image1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/2/082b585f3e8d25d825ec51f8684ee94f53e6cb5e.png)

all im doing here is simply if the widget has focus clear the focus this makes it behave like read only but you can still scroll , highlight text etc

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d1f1f797](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d1f1f797](https://forums.unrealengine.com/u/anonymous_user_d1f1f797)\
**Post date:** [September 18, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/no-read-only-option-in-text-box-multi-line/382031/10 "2017-09-18T16:19:17Z")

</div>

Thank you for the work around. It provided very useful as I ran into the exact same issue.
