[Gtk-sharp-list] Context (popup) menus, Widget.PopupMenu and treeviews

Rafael Teixeira monoman at gmail.com
Wed Jun 28 10:49:36 EDT 2006


Hi Carlos,

"To Be Added" means the "documentation isn't available yet" not that
the functionality isn't working.

Jon,

Did you try to make your event-handler with the [Before] attribute, so
that it is run before the default one that may cut the event
processing short?

Hope it helps,

On 6/28/06, Carlos J. Muentes <carlos at rockwithme.org> wrote:
> Does the description for the PopUpMenu event say "To Be Added" in
> intellisense (in Monodevelop)?
>
>
> > -------- Original Message --------
> > Subject: [Gtk-sharp-list] Context (popup) menus, Widget.PopupMenu and
> > treeviews
> > From: Jon García de Salazar Bilbao <j.garcia at ziv.es>
> > Date: Wed, June 28, 2006 10:04 am
> > To: <gtk-sharp-list at lists.ximian.com>
> >
> > Hi,
> > I wanted my custom treeview (subclassed) to show a context menu and
> > I followed http://gtk-sharp.sourceforge.net/faq.html#3.3
> >
> > It worked and it's fine, but I'd like to know if there's any way to make
> > treeview's
> > PopupMenu event work. I've tried to override OnButtonPressEvent just
> > to enable signal propagation, but it didn't work.
> >
> > Any suggestions?
> >
> > this.PopupMenu += new PopupMenuHandler(ProjectTreePopupMenu);
> >
> > protected override bool OnButtonPressEvent(Gdk.EventButton evnt)
> >         {
> >            base.OnButtonPressEvent(evnt);
> >
> >             return false;
> >         }
> >
> > public void ProjectTreePopupMenu(object o, PopupMenuArgs args)
> >         {
> >             Console.WriteLine(":TODO: launch popup menu");
> >         }
> >
> > Thanks, Jon.
> >
> > ----------------------------------------- PLEASE NOTE -------------------------------------------
> > This message, along with any attachments, may be confidential or legally privileged.
> > It is intended only for the named person(s), who is/are the only authorized recipients.
> > If this message has reached you in error, kindly destroy it without review and notify the sender immediately.
> > Thank you for your help.
> > µSysCom uses virus scanning software but excludes any liability for viruses contained in any attachment.
> >
> > ------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
> > Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal.
> > Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
> > Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración.
> > µSysCom utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw


More information about the Gtk-sharp-list mailing list