# How to disable text area in G4P

**URL:** https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543
**Category:** Libraries
**Created:** [June 6, 2024, 4:40pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543 "2024-06-06T16:40:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://discourse.processing.org/u/hakim)
#### Post date: [June 6, 2024, 4:40pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543/1 "2024-06-06T16:40:18Z")

</div>

Hi, hope you doing all well, is there a way to disable text area in G4P ? i mean i want to add a help interface with small instructions on it and the user can’t of course modify the content of the help page, but i did n t find how to disable the text area modification for content, only solution i m using is to override user inputs.  
any help or suggestions? and thanks !

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [June 6, 2024, 5:15pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543/2 "2024-06-06T17:15:00Z")

</div>

When disabling the textarea control it does not differentiate between keyboard and mouse input therefore the textarea is fully disabled or fully enabled.

So your current work-round is the only solution to your problem.

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [June 7, 2024, 1:30pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543/3 "2024-06-07T13:30:02Z")

</div>

My mistake I believe there is away to do this

```auto
// textarea is the variable name for a GTextArea control
textarea.setTextEditEnabled(false);

```

This will prevent the text being edited but still allow the scrollbars to function.

---

<div class="post-metadata">

### Author: ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://discourse.processing.org/u/hakim)
#### Post date: [June 10, 2024, 1:19pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543/4 "2024-06-10T13:19:03Z")

</div>

thanks ! awesome, is there a way to modify color of the text ? was checking the library for either GtextField or Gtextarea but didn’t see a set Color method.

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [June 10, 2024, 1:27pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543/5 "2024-06-10T13:27:17Z")

</div>

It is possible to change some colours to find out more I have a 2 part guide on my [website](http://www.lagers.org.uk/index.html), see below.

Color Schemes [part 1](http://www.lagers.org.uk/g4p/guides/g04-colorschemes.html) and [part 2](http://www.lagers.org.uk/g4p/guides/g05-colorschemes.html)

---

<div class="post-metadata">

### Author: ![hakim](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hakim](https://discourse.processing.org/u/hakim)
#### Post date: [June 10, 2024, 1:38pm UTC](https://discourse.processing.org/t/how-to-disable-text-area-in-g4p/44543/6 "2024-06-10T13:38:39Z")

</div>

thank you ! it worked.
