Emfor wrote:
Hi there,
I'm fighting with TextView widget. Everything is fine except that when I load text to it and move cursor in it - the coursor can go out of view (TextView doesn't scroll). I tried many examples with using TextIter and TextMark and ScrollToMark function, bu it simply doesn't work.
Can anyone please tell me what am I doing wrong?
--
Best regards,
Emfor
Hi,
Searched for the same, found a solution:
TextIter ti = textview1.Buffer.GetIterAtLine(textview1.Buffer.LineCount-1);
TextMark tm = textview1.Buffer.CreateMark("eot", ti,false);
textview1.ScrollToMark(tm, 0, false, 0, 0);
Nelis