[fxruby-users] TEXT_AUTOSCROLL option in FXText does not work?

Melton, Ryan rmelton at ball.com
Tue Sep 23 11:06:59 EDT 2008


Here is the code I use to implement auto scroll:

              text = text_widget.output.text
              vis_position = text.length - 1
              (text.length - 2).downto(0) do |index|
                if text[index..index] == "\n"
                  vis_position = index + 1
                  break
                end
              end            
              text_widget.output.makePositionVisible(vis_position)

Ryan 

-----Original Message-----
From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of Lyle Johnson
Sent: Tuesday, September 23, 2008 9:04 AM
To: fxruby-users at rubyforge.org
Subject: Re: [fxruby-users] TEXT_AUTOSCROLL option in FXText does not work?

On Tue, Sep 23, 2008 at 9:30 AM, Elbers, H.P. <H.P.Elbers at boskalis.nl> wrote:

> I think the TEXT_AUTOSCROLL option in FXText does not work (last line is not
> visible)...

You are correct. Jeroen has recently indicated that TEXT_AUTOSCROLL is
not actually implemented; see:

    http://www.nabble.com/TEXT_AUTOSCROLL-in-FXText-with-usage-of-FXDataTarget-td19433983.html

I will probably remove that option from the documentation for FXText
until it's actually working.

Hope this helps,

Lyle
_______________________________________________
fxruby-users mailing list
fxruby-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/fxruby-users



This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.


More information about the fxruby-users mailing list