Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Image Map(An image with clickable areas)
Image Map [message #1016782] Thu, 07 March 2013 16:49 Go to next message
Tobias Hofer is currently offline 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 09:18 Go to previous message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 386
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/
Previous Topic:RAP Textfield problem
Next Topic:org.eclipse.swt Dependency issues with RAP 2.0 and Tycho Build
Goto Forum:
  


Current Time: Tue Oct 21 21:39:58 GMT 2014

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

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