Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » creating menu on right click of mouse
creating menu on right click of mouse [message #452763] Thu, 24 March 2005 16:37 Go to next message
Eclipse UserFriend
Originally posted by: gunjan_sir.yahoo.com

hi!
i'm facing a situation wherein i have a view called SolutionExplorer in
my application and this view has categories which has my model objects.
somthing like this..
view in SolutionExplorer.
category1
|-A
|-B
|-C
category2
category3

here A,B,C are my model objects.
when i right click on any of these model objects ,i should get a drop down
menu.
My question is - How will i get a menu on right of mouse?

any suggestion are greatly welcome.
regards
ved
Re: creating menu on right click of mouse [message #452825 is a reply to message #452763] Thu, 24 March 2005 16:18 Go to previous messageGo to next message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
What about adding a popup menu to the model's Container?

Charlie


Ved Gunjan wrote:

>
> hi!
> i'm facing a situation wherein i have a view called SolutionExplorer in
> my application and this view has categories which has my model objects.
> somthing like this..
> view in SolutionExplorer.
> category1
> |-A
> |-B
> |-C
> category2
> category3
>
> here A,B,C are my model objects.
> when i right click on any of these model objects ,i should get a drop
> down menu.
> My question is - How will i get a menu on right of mouse?
>
> any suggestion are greatly welcome.
> regards
> ved
Re: creating menu on right click of mouse [message #452852 is a reply to message #452825] Fri, 25 March 2005 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gunjan_sir.yahoo.com

ya thats sounds fine...but how do i go about doing it..i have very little
ideas as i'm very new to SWT,GEF and draw2d

regards
ved
Re: creating menu on right click of mouse [message #452913 is a reply to message #452852] Mon, 28 March 2005 15:06 Go to previous message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
I assume that your model items are associated with a Control. However,
if they are, you can just add a popup menu to them. I would suggest
finding some examples at eclipse.org. Building a menu is not hard, but
I don't have any sample code to show you.

Charlie


Ved Gunjan wrote:

>
> ya thats sounds fine...but how do i go about doing it..i have very
> little ideas as i'm very new to SWT,GEF and draw2d
>
> regards
> ved
>
Previous Topic:Text widget mac osx does not grey out
Next Topic:tiff T6
Goto Forum:
  


Current Time: Sun Oct 20 16:08:42 GMT 2019

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

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

Back to the top