# Drawing board how to add text, shapes

**URL:** <https://forum.kirupa.com/t/drawing-board-how-to-add-text-shapes/204103>\
**Category:** Uncategorized\
**Created:** [October 17, 2006, 4:08am UTC](https://forum.kirupa.com/t/drawing-board-how-to-add-text-shapes/204103 "2006-10-17T04:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evynco](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evynco/32/2159_2.png) [@evynco](https://forum.kirupa.com/u/evynco)\
**Post date:** [October 17, 2006, 4:08am UTC](https://forum.kirupa.com/t/drawing-board-how-to-add-text-shapes/204103/1 "2006-10-17T04:08:53Z")

</div>

Hi guys I’ve been hunting through the forum and tutiorials but still have some headaches.

(MX2004)  
I have made a ‘whiteboard’, users can draw on it, change width of pen, clear it.

I need to:

1. allow users to add text as well as lines
2. allow them to add a circle or a square
3. clear last stroke/shape
4. save the drawing
5. email it or print it

=== fixed now, see replies below ====

---

<div class="post-metadata">

**Author:** ![evynco](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evynco/32/2159_2.png) [@evynco](https://forum.kirupa.com/u/evynco)\
**Post date:** [October 24, 2006, 11:51pm UTC](https://forum.kirupa.com/t/drawing-board-how-to-add-text-shapes/204103/2 "2006-10-24T23:51:18Z")

</div>

Thanks Canadian !  
My users can now add lines, circles, squares etc.

Now I need to allow them to add text within the whiteboard.

So far I’ve tried using [COLOR=red]createTextField [/COLOR][COLOR=black]to add an input field at the mouse position, like this:[/COLOR]

> \_root.createTextField(“mytext”,1,\_xmouse,\_ymouse,300,100);  
> mytext.type= input;  
> mytext.multiline = true;  
> mytext.wordWrap = true;  
> mytext.border = true;  
> myformat = new TextFormat();  
> myformat.color = 0xff0000;  
> myformat.bullet = false;  
> myformat.underline = false;

```
   mytext.setTextFormat(myformat);

```

Which draws a blank field, now how do we type into it ?

Puzzled, Queensland.
