Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Cursor on ToolItem
Cursor on ToolItem [message #1793589] Fri, 10 August 2018 16:55 Go to next message
Chris Merg is currently offline Chris MergFriend
Messages: 12
Registered: January 2018
Junior Member
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 Go to previous message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 42
Registered: January 2013
Member
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
Previous Topic:ExpandableComposite Twistie style not rendering
Next Topic:Select a custom theme for the application on startup
Goto Forum:
  


Current Time: Thu Apr 25 07:30:30 GMT 2024

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

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

Back to the top