[Gtk-sharp-list] TextBuffer...

Patrik Olterman patrik@olterman.se
22 May 2003 08:40:46 +0200


--=-zv2ymLsEDVphdNBIRhzp
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello again ...

Got my little editor up and running perfectly now. I have however run in
to quite bit of problems with TextBuffer and TextIter. How do I move my
cursor to a specific line in the code.

  	TextIter it;
	//TextIter it2 =3D App.editor.buf.EndIter;
	//int line;
	//(int) line=3Dgoto_entry.Text + 0;
	//int line=3D 3;
	 //it =3D App.editor.buf.GetIterAtLine(out it, line);
	it =3D App.editor.buf.EndIter;
	App.editor.buf.PlaceCursor(it);
	Console.WriteLine(goto_entry.Text + ": " + it); // for debug=20

At this point all I can do is to move it to the end of the buffer. Then
I need to scroll the scrolled window to the cursor, is there a method
for that?=20
 I also need some pointers how to get texttag rocking. I have tried to
read the code of gsirc but I cannot seem get the grasp on how to do
syntax highlighting for my editor. Any pointers in the right direction
would be apreciated.

Regards=20
Olterman

--=-zv2ymLsEDVphdNBIRhzp
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA+zHDtHeA7AF1UGKMRAr+GAJ9H+7yGxXCvuXFY6Lq8p/hAY7FlagCfZ3mE
K3KmWzZJBtYwvGFLlhAraps=
=cS7V
-----END PGP SIGNATURE-----

--=-zv2ymLsEDVphdNBIRhzp--