Question: Customizable cursor/mouse pointer? [message #101780] |
Sun, 10 August 2008 12:19 |
Eclipse User |
|
|
|
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 #102201 is a reply to message #102017] |
Tue, 12 August 2008 18:33 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03011 seconds