# wxRuby textArea?

**URL:** <https://www.ruby-forum.com/t/wxruby-textarea/120625>\
**Category:** wxRuby\
**Created:** [November 19, 2007, 10:21am UTC](https://www.ruby-forum.com/t/wxruby-textarea/120625 "2007-11-19T10:21:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecae2f/32.png) [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Post date:** [November 19, 2007, 10:21am UTC](https://www.ruby-forum.com/t/wxruby-textarea/120625/1 "2007-11-19T10:21:12Z")

</div>

I want to know wxruby can make textArea like java??  
I can only use textbox with it but it has problem when I must use text  
that has many line, it can’t new line

please help me

---

<div class="post-metadata">

**Author:** ![blitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecae2f/32.png) [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Post date:** [November 19, 2007, 10:40am UTC](https://www.ruby-forum.com/t/wxruby-textarea/120625/2 "2007-11-19T10:40:41Z")

</div>

Pat K. wrote:

> I want to know wxruby can make textArea like java??  
> I can only use textbox with it but it has problem when I must use text  
> that has many line, it can’t new line

Seems like you want the multi-line version of wxTextCtrl.

In general, if you’re looking for a specific type of control, run the  
bigdemo sample and locate the control (and code) there.

Best regards,

Jari W.

---

<div class="post-metadata">

**Author:** ![blitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecae2f/32.png) [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Post date:** [November 19, 2007, 10:43am UTC](https://www.ruby-forum.com/t/wxruby-textarea/120625/3 "2007-11-19T10:43:01Z")

</div>

Pat K. wrote:

> I want to know wxruby can make textArea like java??  
> I can only use textbox with it but it has problem when I must use text  
> that has many line, it can’t new line

textarea = Wx::TextCtrl.new(parent, :style =\> Wx::TE\_MULTILINE)

see:  
[http://wxruby.rubyforge.org/doc/textctrl.html](http://wxruby.rubyforge.org/doc/textctrl.html)

alex

---

<div class="post-metadata">

**Author:** ![blitzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecae2f/32.png) [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Post date:** [November 19, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/wxruby-textarea/120625/4 "2007-11-19T14:32:02Z")

</div>

thank you 😃
