# FXText.new

**URL:** <https://www.ruby-forum.com/t/fxtext-new/125677>\
**Category:** Ruby\
**Created:** [January 11, 2008, 3:31am UTC](https://www.ruby-forum.com/t/fxtext-new/125677 "2008-01-11T03:31:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolwong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/d9b06d/32.png) [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Post date:** [January 11, 2008, 3:31am UTC](https://www.ruby-forum.com/t/fxtext-new/125677/1 "2008-01-11T03:31:36Z")

</div>

My FXText is multiple line text box. How the FXText.new always show the  
last line?

---

<div class="post-metadata">

**Author:** ![coolwong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/d9b06d/32.png) [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Post date:** [January 11, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/fxtext-new/125677/2 "2008-01-11T16:15:13Z")

</div>

On Jan 10, 2008, at 8:31 PM, Cool W. wrote:

> My FXText is multiple line text box. How the FXText.new always show  
> the  
> last line?

See this page for an idea:

[http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/](http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/)  
Making\_The\_Text\_In\_An\_FXText\_Widget\_Autoscroll\_When\_New\_Text\_Is\_Added

Hope this helps,

Lyle

---

<div class="post-metadata">

**Author:** ![coolwong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/d9b06d/32.png) [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Post date:** [January 14, 2008, 3:43am UTC](https://www.ruby-forum.com/t/fxtext-new/125677/3 "2008-01-14T03:43:10Z")

</div>

Lyle J. wrote:

> On Jan 10, 2008, at 8:31 PM, Cool W. wrote:
> 
> > My FXText is multiple line text box. How the FXText.new always show  
> > the  
> > last line?
> 
> See this page for an idea:
> 
> [http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/](http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/)  
> Making\_The\_Text\_In\_An\_FXText\_Widget\_Autoscroll\_When\_New\_Text\_Is\_Added
> 
> Hope this helps,
> 
> Lyle

Thanks for your example. But i still cannot work in my ruby program. Can  
you write sample code to run the FXText?

Thanks.

---

<div class="post-metadata">

**Author:** ![coolwong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/d9b06d/32.png) [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Post date:** [January 14, 2008, 5:19am UTC](https://www.ruby-forum.com/t/fxtext-new/125677/4 "2008-01-14T05:19:24Z")

</div>

Lyle J. wrote:

> [http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/](http://fox-toolkit.net/cgi-bin/wiki.pl?Cookbook/)  
> Making\_The\_Text\_In\_An\_FXText\_Widget\_Autoscroll\_When\_New\_Text\_Is\_Added
> 
> Hope this helps,
> 
> Lyle

According your sample, the text field can show the last row. After then  
there show the first row automatically. How can i make the text field  
fix to show the last row?
