Hi,

With no suggested way of fixing my problem being offered, I experimented and
here is the way I have got it working. Remember ShowContextMenu() was also
used by intercepting the Right Mouse Click.

Here is the modified version of OnTreeview1PopupMenu()

protected void OnTreeview1PopupMenu (object o, PopupMenuArgs args)
    {
        Debug.WriteLine( "TreeView Popup Menu click" );
        Application.Invoke( delegate {
           ShowContextMenu();
        }
    } 

This is akin to PostMessage() in WinForm and Win32SDK in Windows
programming.

Any comments?

MarL



--
View this message in context: 
http://mono.1490590.n4.nabble.com/How-to-show-Popup-in-TreeView-using-Shift-F10-tp4662938p4662953.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to