Thanks. Works like a charm. Only question I have now is how do I manage clickHandlers for these images?
It seems that I must have a clickHandler registered for the front most visible image or no click is detected. I tried using a transparent image with a high z index so it would always be in front, but no luck. Is there a better way to manage this than moving the click handler between the main image and the check mark depending ov visibility? thanks again, Andrew On Jul 8, 1:32 am, "brett.wooldridge" <[email protected]> wrote: > Oh, and don't forget to set the z-index of the checkmark to be greater > than the image it's over. Again, using either CSS (z-index) or > programatically: > > checkImg.getElement().getStyle().setProperty("zIndex", "1000"); > > On Jul 8, 12:30 am, "brett.wooldridge" <[email protected]> > wrote: > > > Put the images into an AbsolutePanel, set their positions accordingly > > using either CSS (top/left) or programatically (setWidgetPosition()). > > > On Jul 7, 12:59 pm, zorro2b <[email protected]> wrote: > > > > Is there a way to layer images with GWT? For example I am displaying > > > an image and want to display a check mark over it when it is clicked. > > > > What is the best way to achieve this with GWT? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
