Hi
if the code of the previous post shouldn't work, you can do something
like:
        /* constructor */
        public YourClass() {
                sinkEvents(Event.ONCONTEXTMENU);
        }

        @Override
        public void onBrowserEvent(Event theEvent) {
                int anEventType = DOM.eventGetType(theEvent);
                if(anEventType == Event.ONCONTEXTMENU) {
                        /* do something here to have a custom contextMenu, if 
required */
                        theEvent.stopPropagation();// This will stop the event 
from being
propagated
                        theEvent.preventDefault();
                }
        }

"YourClass" could be a "class" (e.g. a Panel) which contains your
images; for sure it must be a class which can override public void
onBrowserEvent{}
.
greez,
_christoph

-- 
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.

Reply via email to