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-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 : >> >> When adding line to textarea: >> >> TextArea1.Text &= "Something" & gb.NewLine >> >> Cursor jumps to column&line

Re: [Gambas-user] TextArea scrolling

2009-05-25 Thread Benoît Minisini
> >> When adding line to textarea: > >> TextArea1.Text &= "Something" & gb.NewLine > >> Cursor jumps to column&line zero. > > > > Normal, you are assigning the Text property. Use the Insert() method > > instead. > > Ok... I did it vb6 way... > But there is still problem. Mouse click on the textar

Re: [Gambas-user] TextArea scrolling

2009-05-25 Thread Jussi Lahtinen
>> When adding line to textarea: >> TextArea1.Text &= "Something" & gb.NewLine >> Cursor jumps to column&line zero. > > Normal, you are assigning the Text property. Use the Insert() method instead. Ok... I did it vb6 way... But there is still problem. Mouse click on the textarea mess up the curs

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 column&line 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

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 column&line 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 : >> Hi!

Re: [Gambas-user] TextArea scrolling

2009-05-25 Thread Benoît Minisini
> 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 l

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 does

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 : >> 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 GT

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

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 th

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 wrote: > Did you find a solution?

Re: [Gambas-user] TextArea scrolling

2009-04-06 Thread Joshua Higgins
Did you find a solution? 2009/4/4 Jussi Lahtinen > 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 > > > --

[Gambas-user] TextArea scrolling

2009-04-04 Thread Jussi Lahtinen
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 -- ___ Gambas