| Image Map [message #1016782] |
Thu, 07 March 2013 11:49  |
Tobias Hofer Messages: 3 Registered: November 2012 |
Junior Member |
|
|
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?
--
Tobias Hofer
|
|
|
| Re: Image Map [message #1016933 is a reply to message #1016782] |
Fri, 08 March 2013 04:18  |
Tim Buschtoens Messages: 246 Registered: July 2009 |
Senior Member |
|
|
Hi.
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[1] 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.
Greetings,
Tim
[1]http://wiki.eclipse.org/RAP/ClientScripting
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
> cursor.
>
> How can I do this without using the browser widget?
>
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.01869 seconds