Hi, I'm not able to receive any event when I click inside a textview and I did not found any example on the web to show me how to do it.
In fact, what I want is to be aware of movement of the cursor produced by the mouse inside the textview. I have joined a simple application to this message to show one of my attempt. So, if you have any clues, please, let me know thanks David
gui.glade
Description: application/glade
// project created on 2006-03-06 at 22:08
using Gtk;
using System;
public class main {
public static void Main (string[] args){
new win();
}
}
// created on 2006-03-08 at 19:26
using System;
using Gtk;
using GLib;
using Glade;
public class win{
[Widget] Window window;
[Widget] TextView textview;
public win() {
Application.Init ();
Glade.XML gxml = new Glade.XML (null, "gui.glade", "window", null);
gxml.Autoconnect (this);
textview.ButtonPressEvent += textviewButtonPressEvent;
window.DeleteEvent += OnWindowDeleteEvent;
window.Visible = true;
Application.Run ();
}
private void textviewButtonPressEvent(object sender, EventArgs e){
Console.WriteLine("event from the textview");
}
private void OnWindowDeleteEvent (object sender, DeleteEventArgs a) {
Application.Quit ();
a.RetVal = true;
}
}
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
