Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Image Map - Swap Image with Mouse Overs
Image Map - Swap Image with Mouse Overs [message #464156] Thu, 17 November 2005 08:29 Go to next message
ronald Mising name is currently offline ronald Mising nameFriend
Messages: 52
Registered: July 2009
Member
I would like to create something that is commonly seen in html.

However, I have not decided whether to use html, so I am just mining for
ideas how to tackle this problem.

I want to have an image and when you move the mouse over the images swap.
I think in html these are called image maps.

So I see that I could a) use an intro part with xml, css and javascript b)
do some sort of rendering c) use a browser widget and somehow fire events
in my application depending on which links are clicked. There may be some
other options with transparent windows, or even something I haven't
thought of.

Does anyone have any experience doing this, and if so could you point me
in the right direction or to an example?

thanks

ronald
Re: Image Map - Swap Image with Mouse Overs [message #464306 is a reply to message #464156] Mon, 21 November 2005 09:55 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
For mouseover effects you could register yourself as listener to the
control to be notified when the mouse enters/leaves your controls bounds
and change the image when an event occurs.

An "image map" could be implemented with a SelectionListener that uses
the SelectionEvents mouse coordinates to decide what action to take.

Text Links are supported with the Class Link.

Yves


ronald wrote:
> I would like to create something that is commonly seen in html.
>
> However, I have not decided whether to use html, so I am just mining for
> ideas how to tackle this problem.
>
> I want to have an image and when you move the mouse over the images
> swap. I think in html these are called image maps.
>
> So I see that I could a) use an intro part with xml, css and javascript
> b) do some sort of rendering c) use a browser widget and somehow fire
> events in my application depending on which links are clicked. There may
> be some other options with transparent windows, or even something I
> haven't thought of.
>
> Does anyone have any experience doing this, and if so could you point me
> in the right direction or to an example?
>
> thanks
>
> ronald
>
Previous Topic:SWT Tables
Next Topic:Is there Any way to disable the ability of an eclipse view to be resized?
Goto Forum:
  


Current Time: Thu Apr 18 17:20:46 GMT 2024

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

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

Back to the top