Friday, June 29, 2012

Is there a trick to dragging a PushButton?

I have a PushButton widget with an up-face image that I'd like to respond to clicks as well as allowing the button to be dragged to another application.  If I create the Image used for the up-face without including it in the PushButton, it drags with the correct drag image and drag data.  If I put the same Image on the face of a PushButton, it can no longer be dragged.  If I move the DragStartHandler to the PushButton, it still can't be dragged.

I'm guessing that perhaps the way the PushButton processes click events might stop the propagation of the event before I get a DragStartEvent, but right now I'm pretty lost.

Thanks, smoyer

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/iH5svRu2PuYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment