SWT.MouseHover [message #1775787] |
Mon, 06 November 2017 12:27  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05649 seconds