Re: [Gambas-user] TextArea scrolling

2009-05-26 Thread Jussi Lahtinen
Thanks! This solution works in my case: TextArea1.Text = Something gb.NewLine TextArea1.Pos = TextArea1.Length TextArea1.EnsureVisible() Jussi 2009/5/25 Benoît Minisini gam...@users.sourceforge.net: When adding line to textarea: TextArea1.Text = Something gb.NewLine Cursor jumps to

Re: [Gambas-user] TextArea scrolling

2009-05-26 Thread Benoît Minisini
Thanks! This solution works in my case: TextArea1.Text = Something gb.NewLine TextArea1.Pos = TextArea1.Length TextArea1.EnsureVisible() Jussi Using TextArea1.Insert() is better and faster. Regards, -- Benoît

Re: [Gambas-user] TextArea scrolling

2009-05-25 Thread Jussi Lahtinen
Hi! I must wake up this forgotten issue... This is still valid problem and I got more information about it. This line of code: TextArea1.EnsureVisible() In GTK+, makes textarea to scroll down, but in Qt it in fact do opposite, scroll up! So if you haven't touch to scroll bar, it looks like it

Re: [Gambas-user] TextArea scrolling

2009-05-25 Thread Jussi Lahtinen
OK, two problems. When adding line to textarea: TextArea1.Text = Something gb.NewLine Cursor jumps to columnline zero. Other problem is that I need propertie ReadOnly to be True, and then at least the cursor is not visible if there even is one. Jussi 2009/5/25 Benoît Minisini

Re: [Gambas-user] TextArea scrolling

2009-05-25 Thread Benoît Minisini
OK, two problems. When adding line to textarea: TextArea1.Text = Something gb.NewLine Cursor jumps to columnline zero. Normal, you are assigning the Text property. Use the Insert() method instead. Other problem is that I need propertie ReadOnly to be True, and then at least the cursor

Re: [Gambas-user] TextArea scrolling

2009-04-06 Thread Joshua Higgins
Did you find a solution? 2009/4/4 Jussi Lahtinen jussi.lahti...@gmail.com Hi! How I can automatically scroll down textarea? So that the last message printed to textarea is always showing, without user have to scroll down? Regards, Jussi

Re: [Gambas-user] TextArea scrolling

2009-04-06 Thread Jussi Lahtinen
I was just writing about this issue! It turn out to be bug! This works on GTK+, but not with Qt; TextArea1.EnsureVisible() So, if you are using GTK+ you have your solution... If not, you must wait for fix. Jussi On Mon, Apr 6, 2009 at 17:13, Joshua Higgins joshigg...@googlemail.com wrote:

Re: [Gambas-user] TextArea scrolling

2009-04-06 Thread Benoît Minisini
I was just writing about this issue! It turn out to be bug! This works on GTK+, but not with Qt; TextArea1.EnsureVisible() So, if you are using GTK+ you have your solution... If not, you must wait for fix. Jussi It's the contrary: The EnsureVisible() method should not be there. :-)

Re: [Gambas-user] TextArea scrolling

2009-04-06 Thread Benoît Minisini
I was just writing about this issue! It turn out to be bug! This works on GTK+, but not with Qt; TextArea1.EnsureVisible() So, if you are using GTK+ you have your solution... If not, you must wait for fix. Jussi Forget my other mail: the EnsureVisible() method is perfectly valid, but

Re: [Gambas-user] TextArea scrolling

2009-04-06 Thread Jussi Lahtinen
Absolutely nothing happens in Qt, but with GTK+ it works as expected. It works in your system? Jussi 2009/4/6 Benoît Minisini gam...@users.sourceforge.net: I was just writing about this issue! It turn out to be bug! This works on GTK+, but not with Qt; TextArea1.EnsureVisible() So, if