[10437] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: CList: Menu on right-click

daemon@ATHENA.MIT.EDU (Todd Dukes)
Wed Nov 25 09:43:49 1998

Date: Wed, 25 Nov 1998 14:46:00 +0000
From: Todd Dukes <tjdukes@flash.net>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

"D. Emilio Grimaldo Tunon" wrote:
> 
> Hi,
>    On a CList I can (de)select with the mouse, but what if I
> want to be able to popup a dropdown menu (just like in
> root windows) when I press the right eye (:-) of the mouse
> on a CList item? is that possible? (1.0.5? or 1.1?)
> 
>                 TIA,
>                         Emilio
> --
> D. Emilio Grimaldo Tunon       Compuware Europe B.V. (Uniface Lab)
> Software Engineer              Amsterdam, The Netherlands
> emilio_tunon@nl.compuware.com  Tel. +31 (0)20 3126 516
> *** The opinions expressed hereby are mine and not my employer's ***
> 
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

Yes it is. I don't have an example for gtk+. But there is one in
gtk-- in examples called testgtkmm.cc. It is in the itemfactory 
test. Essentially you connect to the button_press_event, when you
get the event, check to see if it is the button you want. If it
is call popup on the menu.

Todd
-- 
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post