On Wed, Aug 03, 2005 at 05:25:19PM -0300, Paulo Alves Magalh?es Filho wrote: > > How to know in which line/column the cursor is located ?
<pseudo> TextView view = Gtk.TextView () TextBuffer buf = view.Buffer TextIter iter = buf.GetIterAtMark (buf.InsertMark) print iter.Line print iter.LineOffset </pseudo> > > I know that I must listen to an event, however do not know which and > nor as to intercept given of the current line and column. As for events, I'm not sure if you mean an event for when the cursor moves, or when the text changes. buf.Changed is an event for when the buffer text changes, and view.MoveCursor should get fired when the cursor moves. -pete -- Peter Johanson <[EMAIL PROTECTED]> _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
