Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT.MouseHover
SWT.MouseHover [message #1775787] Mon, 06 November 2017 12:27 Go to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 115
Registered: February 2013
Senior Member
Hello

Can I realise action for mousehover for widget in RAP?
I want to open menu without click mouse
Dmitry
Re: SWT.MouseHover [message #1776152 is a reply to message #1775787] Mon, 13 November 2017 09:13 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2262
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
mouse track listeners are not yet supported in RAP. Probably we will consider adding support for them in one of the next releases.
Regards,
Ivan
Re: SWT.MouseHover [message #1776235 is a reply to message #1775787] Tue, 14 November 2017 09:19 Go to previous message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 27
Registered: January 2013
Junior Member
If you do not insist on using 'classic' context menu, create the menu as a composite which contains links or buttons (or whatever you want to use as menu items) and use ClientListeners to change the menu's visibility.

Add a MouseEnter ClientListener to the widget you want to provide the menu for (to show the menu) and a MouseExit ClientListener to the menu widget (to hide the menu). See [1] for further information on ClientListeners.

[1] https://eclipse.org/rap/developers-guide/devguide.php?topic=scripting.html&version=3.1#ClientListener
Previous Topic:Sash of sashform can't be released inside RichTextEditor editor.
Next Topic:Nebula Grid text color using Table-GridLine:horizontal
Goto Forum:
  


Current Time: Sun Feb 18 08:28:09 GMT 2018

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

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