[Gtk-sharp-list] GTK Window Events

jtemple jtemple at yhti.net
Sun Aug 8 23:03:09 EDT 2010

Okay.  I found the partial class file that defined the OnShown event.  I
modified the code in my application but OnShown is stil not getting fired. 
Here's the main window code:

using System;

using Gtk;

public partial class MainWindow : Gtk.Window


	public MainWindow () : base(Gtk.WindowType.Toplevel)


		Build ();


	protected void OnDeleteEvent (object sender, DeleteEventArgs a)


		Application.Quit ();

		a.RetVal = true;


	protected virtual void OnExitActionActivated (object sender,
System.EventArgs e)





	protected virtual void OnShown (object sender, System.EventArgs e)


		Button test = new Button("Test");

		Label tstLabel = new Label("Test");

		notebook1.AppendPage(test, tstLabel);








And here's the OnShown event definition:

		this.Shown += new global::System.EventHandler (this.OnShown);

So when I put the program in debug the OnShow is never getting called.  

Thanks for help in advance.
View this message in context: http://mono.1490590.n4.nabble.com/GTK-Window-Events-tp2316890p2318132.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list