|Image Map [message #1016782]
||Thu, 07 March 2013 11:49
| Tobias Hofer
Registered: November 2012
I want to display an Image that contains clickable areas, similar to the HTML <map> element an its associated image.|
Displaying the image is quite easy, but I would like to give feedback to the user if it enters a clickable area by changing the appearance of the cursor.
How can I do this without using the browser widget?
|Re: Image Map [message #1016933 is a reply to message #1016782]
||Fri, 08 March 2013 04:18
| Tim Buschtoens
Registered: July 2009
I could think of two ways to do this.
One way could be to position composites with transparent backgrounds and
custom cursors on top of the image. Use SWT.INHERIT_FORCE or CSS theming
to get the transparent background.
Another could be to use ClientScripting with the mousemove event. Add
a ClientListener to the widget that displays the image, then in the
script set the cursor depending on the coordinates.
See if one of these works for you.
Am 07.03.2013 17:49, schrieb Tobias Hofer:
> I want to display an Image that contains clickable areas, similar to the
> HTML <map> element an its associated image.
> Displaying the image is quite easy, but I would like to give feedback to
> the user if it enters a clickable area by changing the appearance of the
> How can I do this without using the browser widget?
Professional services for RAP and RCP?
Powered by FUDForum
. Page generated in 0.01869 seconds