On Thu, May 21, 2009 at 6:10 PM, danieru <[email protected]> wrote: > > Greetings! > I'm trying to implement a popup menu for my treeview. From other threads > I've found out how to capture the mouse right-click event with > [Gtk.ConnectBeforeAttribute], so that's working ok. Now I'm unclear on how > to make the correct type of menu and have it popup. I had found instructions > in the Mono API documentation explaining how to use a menu class, add > menuitems, etc., but that was a dead-end since it's telling you to use the > obsolete OptionMenu. I then found another thread here saying to use a > ComboBox instead, but the docs don't mention anything about how to use a > ComboBox as a popup menu. I am seeing the Popup function, but can't seem to > get it to work. I'm trying this:
You should use Gtk.Menu.Popup: http://www.go-mono.com/docs/index.aspx?link=M:Gtk.Menu.Popup(Gtk.Widget,Gtk.Widget,Gtk.MenuPositionFunc,System.UInt32,System.UInt32) -- Michael Hutchinson http://mjhutchinson.com _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
