# Create a text input when mouse clicked

**URL:** <https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167>\
**Category:** Processing.py\
**Created:** [December 5, 2019, 9:56pm UTC](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167 "2019-12-05T21:56:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saltsnuf](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@saltsnuf](https://discourse.processing.org/u/saltsnuf)\
**Post date:** [December 5, 2019, 9:56pm UTC](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167/1 "2019-12-05T21:56:38Z")

</div>

im trying to make a visual program of sticky notes and im wondering how i get a yellow box to appear where a user can enter in text.

---

<div class="post-metadata">

**Author:** ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Post date:** [December 5, 2019, 10:03pm UTC](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167/2 "2019-12-05T22:03:01Z")

</div>

Try using cp5 library. It‘s very easy to use and has a Textarea object, which does exactly what you need.

---

<div class="post-metadata">

**Author:** ![saltsnuf](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@saltsnuf](https://discourse.processing.org/u/saltsnuf)\
**Post date:** [December 5, 2019, 10:07pm UTC](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167/3 "2019-12-05T22:07:27Z")

</div>

would i be able to add each sticky note entry to a dictionary using the cp5 library?

---

<div class="post-metadata">

**Author:** ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Post date:** [December 5, 2019, 10:10pm UTC](https://discourse.processing.org/t/create-a-text-input-when-mouse-clicked/16167/4 "2019-12-05T22:10:59Z")

</div>

[https://py.processing.org/reference/dictionary.html](https://py.processing.org/reference/dictionary.html)

Yes, as the link shows, you can use any Type as value, so also a Textarea object.
