Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Question: Customizable cursor/mouse pointer?
Question: Customizable cursor/mouse pointer? [message #101780] Sun, 10 August 2008 12:19 Go to next message
Eclipse UserFriend
Originally posted by: meetme.upb.de

Hi there!


I was wondering if it is possible to use customized cursors/mouse
pointers in RAP.

For instance if you want to have a mouse pointer with a sign next to it
whenever the pointer hovers a certain view (like a drawing canvas view).

If you cannot do this with standard RAP tools - is it possible to have a
mouse pointer which trails an image? That image would have to be
re-drawn at the right position every time the pointer moves (but I
recall reading that you cannot query the mouse pointer position in RAP).

Thanks for any replies - or ideas how to work around it!


Best regards

Timo Hosters
Re: Question: Customizable cursor/mouse pointer? [message #102017 is a reply to message #101780] Tue, 12 August 2008 09:04 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi,

at the moment the API to change the Cursor is not in place
(Control#setCursor). The feature should not be that hard to implement
but currently we have other plans.

But in your case you want a sign *besides* the cursor which implies that
you not just want to change the cursor be create your own. Theoretically
this is possible with the SWT API but I'm not yet sure if this will also
work as expected in RAP. This is something we need to investigate.

In the meantime you could take a look at some Javascript/DHTML snippets
on the web. There are many snippets how to attach an image to the
cursor. You would then need to adapt this to RAP by integrating it into
your custom widget.

See also the qooxdoo API for cursors like Widget#setCursor.

Best greets
Benny

Timo Hosters wrote:
> Hi there!
>
>
> I was wondering if it is possible to use customized cursors/mouse
> pointers in RAP.
>
> For instance if you want to have a mouse pointer with a sign next to it
> whenever the pointer hovers a certain view (like a drawing canvas view).
>
> If you cannot do this with standard RAP tools - is it possible to have a
> mouse pointer which trails an image? That image would have to be
> re-drawn at the right position every time the pointer moves (but I
> recall reading that you cannot query the mouse pointer position in RAP).
>
> Thanks for any replies - or ideas how to work around it!
>
>
> Best regards
>
> Timo Hosters
Re: Question: Customizable cursor/mouse pointer? [message #102201 is a reply to message #102017] Tue, 12 August 2008 18:33 Go to previous message
Eclipse UserFriend
Originally posted by: meetme.upb.de

Thank you for your quick reply, Mr. Muskalla.


While it would be nice to change the whole cursor,
the solution with an image next to the cursor works for me as well.

I would go for the Javascript approach -
maybe it is possible to adapt a script I have seen on a web page once.



Thanks again

Timo Hosters



Benjamin Muskalla wrote:
> Hi,
>
> at the moment the API to change the Cursor is not in place
> (Control#setCursor). The feature should not be that hard to implement
> but currently we have other plans.
>
> But in your case you want a sign *besides* the cursor which implies that
> you not just want to change the cursor be create your own. Theoretically
> this is possible with the SWT API but I'm not yet sure if this will also
> work as expected in RAP. This is something we need to investigate.
>
> In the meantime you could take a look at some Javascript/DHTML snippets
> on the web. There are many snippets how to attach an image to the
> cursor. You would then need to adapt this to RAP by integrating it into
> your custom widget.
>
> See also the qooxdoo API for cursors like Widget#setCursor.
>
> Best greets
> Benny
Previous Topic:redirection
Next Topic:SWT DateTime
Goto Forum:
  


Current Time: Fri Apr 26 16:40:14 GMT 2024

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

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

Back to the top