On Wednesday 10 May 2006 02:43, Paul Davis wrote: > >>Try: > >> > >>// Insert text and save iterator (although not used anymore?) > >>iter = textviewBuffer->insert(textviewBuffer->end(), "Text portion > >>with many lines"); > >> > >>// Get current mark at insert position > >>cur_mark = textviewBuffer->get_insert(); > >> > >>// Scroll to mark > >>textview->scroll_to(cur_mark, 0.0); > > > > I still have the problem that when clicking anywhere in the TextView > > cur_mark gets set to that position and scroll_to() always scrolls > > there, even when I use the scrollbar to scoll down all the way. > > Tried: > > iter = textviewBuffer->insert(textviewBuffer->end(), "" ); > cur_mark = textviewBuffer->get_insert(); > textview->scroll_to(cur_mark, 0.0); I am sorry, but isn't this exactly what you posted earlier? I tried that of course, and it works fine, except for the problem with the cursor I wrote about in the previous message. I'm a bit confused :) Andreas -- Andreas "daff" Ntaflos daff AT dword DOT org Vienna, Austria GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4 GPG Public Key ID: 090CA9B4 GPG Public Key: http://daffit.meownz.info/publickey/andreas_ntaflos.asc
Attachment:
pgpmCOl8Cizaj.pgp
Description: PGP signature