Re: [Gambas-user] TextArea scrolling
Brought to you by:
gambas
|
From: Jussi L. <jus...@gm...> - 2009-05-25 19:25:22
|
>> 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 cursor position, and next insert ruins output. Even if ReadOnly property is True. And also I use Mid$() to edit content of the textarea. Like this; Mid$(.Text, (Len(.Text) - iLastMessageLen), Len(.Text)) = (sTellMe & gb.NewLine) It is meant to correct the output afterwards if needed. But maybe there is other way to erase last message and replace it with new one... this is quickly converted from vb6 code. Is there way to determine cursors last column and last line? At this point I'm not sure how to do this... Jussi |