[Gtk-sharp-list] Gnome.IconList + Gtk.Menu

Nigel Benns nigel_benns@rogers.com
Mon, 8 Nov 2004 08:19:20 -0500 (EST)

OK.... I see how it works now... but its a little more tricky then you
describe it.

the args.Event isn't a Gtk.ButtonEvent, its a GDK.Event, so I can't access
it like this (args.Event.Button).

What I had to do was to determine the event type args.Event.Type and if it
that turns out to be a ButtonEvent, I do this

if (args.Event.Type.ToString == "ButtonEvent") {

   EventButton eb = new EventButton(args.Event.Handle);
   if (eb.Button == 3) { blah... blah...}


> On Fri, 2004-11-05 at 11:02 -0500, Nigel Benns wrote:
>> With args.Num or is that the icon that is selected, or is it
>> args.Event.Button like in the ButtonPressArgs, the monodoc isn't
>> completed
>> for this
> args.Num is the index of the icon that was selected; args.Event.Button
> is the mouse button number that was used to change the selection.
> If you click the right mouse button on the fifth icon in the list, those
> arguments will be 6 and 3, respectively.
>   Federico