Skip to main content


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 HoferFriend
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 BuschtoensFriend
Messages: 396
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:TreeViewer : how to set focus on a particular cell
Next Topic:[Theming][Text] Internet Explorer ignores css tags on disabled Text Widgets
Goto Forum:
  


Current Time: Sat Apr 20 01:51:54 GMT 2024

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

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

Back to the top