Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Right click context menu on Gallery
Right click context menu on Gallery [message #37589] Tue, 24 July 2007 09:54 Go to next message
Eclipse UserFriend
Originally posted by: robert.handschmann.gmx.at

Hi!
How can I setup a right click context menu on the Gallery widget?
Is it currently supported?

I created a Menu with MenuManager#createContextMenu and passed it to
Gallery#setMenu. I use about the same procedere as with TableViewer and
Table widget.

Thankx,
Robert
Re: Right click context menu on Gallery [message #37616 is a reply to message #37589] Tue, 24 July 2007 12:07 Go to previous messageGo to next message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

Using Gallery#setMenu behaves exactly the same as Table#setMenu, so the
steps you describle should work and it's the right way to implement
context menus. You can get the current selection using
Gallery#getSelection.

Does it work for you ?

--
Nicolas




Rob.Mac a écrit :
> Hi!
> How can I setup a right click context menu on the Gallery widget?
> Is it currently supported?
> I created a Menu with MenuManager#createContextMenu and passed it to
> Gallery#setMenu. I use about the same procedere as with TableViewer and
> Table widget.
>
> Thankx,
> Robert
>
Re: Right click context menu on Gallery [message #37677 is a reply to message #37616] Tue, 24 July 2007 12:18 Go to previous message
Eclipse UserFriend
Originally posted by: robert.handschmann.gmx.at

Yes it was my fault. It works as expected.
Thanks!
Re: Right click context menu on Gallery [message #583618 is a reply to message #37589] Tue, 24 July 2007 12:07 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

Using Gallery#setMenu behaves exactly the same as Table#setMenu, so the
steps you describle should work and it's the right way to implement
context menus. You can get the current selection using
Gallery#getSelection.

Does it work for you ?

--
Nicolas




Rob.Mac a écrit :
> Hi!
> How can I setup a right click context menu on the Gallery widget?
> Is it currently supported?
> I created a Menu with MenuManager#createContextMenu and passed it to
> Gallery#setMenu. I use about the same procedere as with TableViewer and
> Table widget.
>
> Thankx,
> Robert
>
Re: Right click context menu on Gallery [message #583636 is a reply to message #37616] Tue, 24 July 2007 12:18 Go to previous message
Eclipse UserFriend
Originally posted by: robert.handschmann.gmx.at

Yes it was my fault. It works as expected.
Thanks!
Previous Topic:Right click context menu on Gallery
Next Topic:ToolTip support on Gallery
Goto Forum:
  


Current Time: Tue Nov 25 00:46:07 GMT 2014

Powered by FUDForum. Page generated in 0.01948 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software