Cursor on ToolItem [message #1793589] |
Fri, 10 August 2018 16:55  |
Eclipse User |
|
|
|
Hello everyone,
Was wondering if it's possible to change the cursor when hovering over ToolItems inside a ToolBar. I can only setCursor of ToolBar but not of the ToolItem I've created. This would be very useful for Push-Toolitems in order to signalize a possible event to the user.
Thanks,
Chris
|
|
|
Re: Cursor on ToolItem [message #1793964 is a reply to message #1793589] |
Tue, 21 August 2018 09:07  |
Eclipse User |
|
|
|
I think it is not possible to set the cursor on a ToolItem since ToolItem extends Item, not Control.
What you can do is to use a Composite instead of a ToolBar and to use ActionContributionItem. This class creates a Button when fill(Composite parent) is used. You can access the button via getWidget and set a cursor to it. Alternatively, define the cursor via css for Buttons.
Regards
Sebastian
|
|
|
Powered by
FUDForum. Page generated in 0.04643 seconds