[Gtk-sharp-list] Enter and Leave notify?

Carlos Adriano Portes xcap2000 at gmail.com
Sat Dec 2 07:27:30 EST 2006


Hi folks, why those do not work in my glade application, the signals
connect without any error message, the click works but those no,
here's the code:

using System;
using Gtk;
using Glade;

namespace HegloTransportes
{
	public class FrmPrincipal
	{
		[Widget] private Window FormPrincipal;
		private Glade.XML frmPrincipal;
		public FrmPrincipal()
		{
			
		}
		public void Show()
		{
			frmPrincipal = new Glade.XML(null, "HegloTransportes.glade",
"FormPrincipal", null);
			frmPrincipal.Autoconnect(this);
		}
		#region FrmPrincipal
		public void on_FrmPrincipal_delete_event(object sender, DeleteEventArgs args)
		{
			Application.Quit();
		}
		#endregion		
		#region	mnuClientes
		public void on_mnuClientes_activate(object sender, EventArgs args)
		{
			Console.WriteLine("Clientes->Activate");
		}
		public void on_mnuClientes_enter_notify_event(object sender,
EnterNotifyEventArgs args)
		{
			Console.WriteLine("Clientes->Enter");
		}
		public void on_mnuClientes_leave_notify_event(object sender,
LeaveNotifyEventArgs args)
		{
			Console.WriteLine("Clientes->Leave");
		}
		#endregion
		#region mnuSair
		public void on_mnuSair_activate(object sender, EventArgs args)
		{
			Application.Quit();
		}
		public void on_mnuSair_enter_notify_event(object sender,
EnterNotifyEventArgs args)
		{
			Console.WriteLine("Sair->Enter");
		}
		public void on_mnuSair_leave_notify_event(object sender,
LeaveNotifyEventArgs args)
		{
			Console.WriteLine("Sair->Sair");
		}
		#endregion
		#region btnClientes
		public void on_btnClientes_clicked(object sender, EventArgs args)
		{
			Console.WriteLine("Clientes->Clicked");
		}
		public void on_btnClientes_enter_notify_event(object sender,
EnterNotifyEventArgs args)
		{
			Console.WriteLine("Clientes->Enter");
		}
		public void on_btnClientes_leave_notify_event(object sender,
LeaveNotifyEventArgs args)
		{
			Console.WriteLine("Clientes->Leave");
		}
		#endregion
		#region btnSair
		public void on_btnSair_clicked(object sender, EventArgs args)
		{
			Application.Quit();
		}
		public void on_btnSair_enter_notify_event(object sender,
EnterNotifyEventArgs args)
		{
			Console.WriteLine("Sair->Enter");
		}
		public void on_btnSair_leave_notify_event(object sender,
LeaveNotifyEventArgs args)
		{
			Console.WriteLine("Sair->Sair");
		}
		#endregion
	}
}

Thanks in advance.


More information about the Gtk-sharp-list mailing list