Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ContextMenu activation pixel
ContextMenu activation pixel [message #46055] Wed, 27 November 2002 21:03 Go to next message
Eclipse UserFriend
Originally posted by: melaasar.rational.com

Hello,

Is there an easy way to get the pixel where the user right-clicked to bring
up a contextmenu? Some of my contextual actions need this point to create
shapes at the position of the click.

Thanks,
Maged
Re: ContextMenu activation pixel [message #46114 is a reply to message #46055] Thu, 28 November 2002 00:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The context menu can be activated using Shift+F10. The mouse location is
not interesting.

"Maged Elaasar" <melaasar@rational.com> wrote in message
news:as3bp9$8ep$1@rogue.oti.com...
> Hello,
>
> Is there an easy way to get the pixel where the user right-clicked to
bring
> up a contextmenu? Some of my contextual actions need this point to create
> shapes at the position of the click.
>
> Thanks,
> Maged
>
>
Re: ContextMenu activation pixel [message #55309 is a reply to message #46114] Thu, 16 January 2003 19:11 Go to previous messageGo to next message
Roman Bosák is currently offline Roman BosákFriend
Messages: 12
Registered: July 2009
Junior Member
I don't think so that the mouse location is not interesting. I think that it
is very user friendly to create some EditParts using context menu at the
position of the mouse right click.

"Randy Hudson" <none@us.ibm.com> p
Re: ContextMenu activation pixel [message #55333 is a reply to message #55309] Thu, 16 January 2003 19:49 Go to previous messageGo to next message
Eric Bordeau is currently offline Eric BordeauFriend
Messages: 259
Registered: July 2009
Senior Member
What Randy was saying is that you can activate the context menu with Shift-F10. The mouse may not
even be over the editor at that time. Then the mouse location is no use. I would think the best
way to go would be to put the new EditPart at some default location, like centered in the editor.

Eric


Roman Bosák wrote:
> I don't think so that the mouse location is not interesting. I think that it
> is very user friendly to create some EditParts using context menu at the
> position of the mouse right click.
>
> "Randy Hudson" <none@us.ibm.com> pí¹e v diskusním pøíspìvku
> news:as3o6c$elr$1@rogue.oti.com...
>
>>The context menu can be activated using Shift+F10. The mouse location is
>>not interesting.
>>
>>"Maged Elaasar" <melaasar@rational.com> wrote in message
>>news:as3bp9$8ep$1@rogue.oti.com...
>>
>>>Hello,
>>>
>>>Is there an easy way to get the pixel where the user right-clicked to
>>
>>bring
>>
>>>up a contextmenu? Some of my contextual actions need this point to
>
> create
>
>>>shapes at the position of the click.
>>>
>>>Thanks,
>>>Maged
>>>
>>>
>>
>>
>
>
Re: ContextMenu activation pixel [message #59665 is a reply to message #55309] Wed, 29 January 2003 16:45 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could make a modified SelectionTool that handlesButtonDown(3) and pops
up the normal context menu plus the additional menu items for creation, but
this would not be accessible to non-mouse users.

"Roman Bos
Previous Topic:Problem with logic editor
Next Topic:Connections between nodes which are contained in containers
Goto Forum:
  


Current Time: Wed Jan 15 14:06:59 GMT 2025

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

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

Back to the top