Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Change mouse image on mouse-over
Change mouse image on mouse-over [message #236494] Fri, 29 June 2007 11:19 Go to next message
Eclipse UserFriend
Originally posted by: prashanto.chatterjee.softwareag.com

Hi Guys,
I have this specific requirement wherein I need to
(i) change the figure of an edit-part when the same recieves a mouse-over
event
(ii) change the mouse image

For part (i), I added requisite code in the corresponding EditPolicy inside
the 'showTargetFeedback' method.

However, I am not sure as to how do I change the mouse image. Is this
possible and If YES how do I go about achieving it?

Thanks in advance,
Prashanto Chatterjee
Re: Change mouse image on mouse-over [message #236499 is a reply to message #236494] Fri, 29 June 2007 11:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prashanto.chatterjee.softwareag.com

Please read 'mouse image' as mouse-cursor.

"Prashanto Chatterjee" <prashanto.chatterjee@softwareag.com> wrote in
message news:f62psk$pv0$1@build.eclipse.org...
> Hi Guys,
> I have this specific requirement wherein I need to
> (i) change the figure of an edit-part when the same recieves a mouse-over
> event
> (ii) change the mouse image
>
> For part (i), I added requisite code in the corresponding EditPolicy
> inside the 'showTargetFeedback' method.
>
> However, I am not sure as to how do I change the mouse image. Is this
> possible and If YES how do I go about achieving it?
>
> Thanks in advance,
> Prashanto Chatterjee
>
Re: Change mouse image on mouse-over [message #236539 is a reply to message #236494] Tue, 03 July 2007 10:49 Go to previous message
Eclipse UserFriend
Originally posted by: prashanto.chatterjee.softwareag.com

I got the solution.

Inside the 'showTargetFeedback' method of the corresponding edit-part, I set
the cursor of the figure to the HAND cursor. Similarly, inside the
eraseTargetFeedback method, I changed it back to the default cursor.

Cheers,
Prashanto

"Prashanto Chatterjee" <prashanto.chatterjee@softwareag.com> wrote in
message news:f62psk$pv0$1@build.eclipse.org...
> Hi Guys,
> I have this specific requirement wherein I need to
> (i) change the figure of an edit-part when the same recieves a mouse-over
> event
> (ii) change the mouse image
>
> For part (i), I added requisite code in the corresponding EditPolicy
> inside the 'showTargetFeedback' method.
>
> However, I am not sure as to how do I change the mouse image. Is this
> possible and If YES how do I go about achieving it?
>
> Thanks in advance,
> Prashanto Chatterjee
>
Previous Topic:extend the size of a figure
Next Topic:FlowLayout question
Goto Forum:
  


Current Time: Wed Aug 17 23:01:18 GMT 2022

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

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

Back to the top