New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setToolTipText method to MenuItem #30
Comments
Probably adding the method is enough. As seen from the code the toolTip text is set on the menu shell. Shell#setToolTipText is already available. |
Compile-wise this works, but no Tooltip shows up when hovering over the MenuItems. (which works in SWT) |
I've double checked the SWT implementation and it is different at least on Windows:
There is an internal class
which is called by the Menu class. |
Maybe this is the way to go in RWT as well. |
I'll try to come with complete JS implementation here, similar to the other widgets. |
I tried to adapt that, but the tooltip does not show up when hovering over the MenuItem's.
Any ideas? |
Add new API: - org.eclipse.swt.widgets.MenuItem.setToolTipText(String) - org.eclipse.swt.widgets.MenuItem.getToolTipText() To have a tooltip with markup, the RWT.TOOLTIP_MARKUP_ENABLED must be set as data on the item. Fix #30
@phermsdorf I've created a fully working implementation and a pull request. What is probably missing for you are the changes in |
Add new API: - org.eclipse.swt.widgets.MenuItem.setToolTipText(String) - org.eclipse.swt.widgets.MenuItem.getToolTipText() To have a tooltip with markup, the RWT.TOOLTIP_MARKUP_ENABLED must be set as data on the item. Fix #30
Hi,
this method seems to be missing. The JavaDoc and method from SWT:
In RWT the handle is obviously missing.
Would be nice if that could be implemented. If someone would suggest a fix I could try to make a PR.
Thanks,
Bye Peter
The text was updated successfully, but these errors were encountered: