Re: Mouse Over Image

2010-07-22 Thread Craigo
The PopupPanel.showRelativeTo(UIObject) method is handy for this. On Jul 22, 3:10 pm, abhiram wuntakal abhir...@gmail.com wrote: Hi,   I had implemented a very similar functionality, where I had to display a label as soon as there is a mouse-over on the image and where there a mouse-out, the

Re: Mouse Over Image

2010-07-22 Thread George Georgovassilis
You might do it with some CSS provided that you are not targeting IE6. 1. Make a div with fixed dimensions 2. Put the label and the image into the div 3. The initial style for the label should be absolute positioning and hidden. You can play with margins to place the label anywhere ove rthe image

Re: Mouse Over Image

2010-07-21 Thread lineman78
I believe you need to use the add(Widget, x, y) method on root panel when you add it in the first place so that it sets it as position absolute. Why not just use the alt text on an image(setTitle)? It is a lot less work and is accessable, meaning the alt text is what screen readers look to in

Re: Mouse Over Image

2010-07-21 Thread cokol
as lineman already written, you first have to add the label widget to the DOM ,you could do it just after setting label to hidden. Then you also have to give the widget the property position: absolute in your case you could also use tooltips over widgets, they are better fitted since they know

Re: Mouse Over Image

2010-07-21 Thread nacho
Hi, thanks both. The problem was that i was using this javascript library http://www.netzgesta.de/reflex/ with that image and the reflection script was modifing the image widget html generated by gwt. On the other hand i'm using a label because i'm building a gwt-apple- like-dock so the simple

Re: Mouse Over Image

2010-07-21 Thread abhiram wuntakal
Hi, I had implemented a very similar functionality, where I had to display a label as soon as there is a mouse-over on the image and where there a mouse-out, the label had to disappear. This is what I did. defined an image at a position fixed Rootpanel. defined a html(instead of a label)