http://qs321.pair.com?node_id=700136


in reply to Goo Canvas clicking pass through transparency

Hey, if you figure it out, post an example please. :-) From my testing, rects and ellipses with transparent centers will let the signal pass thru, but a transparent section of an image shows the image as the current item. If you look at the Goo demo, and move the toroid.png ( with a transparent center) over another item, then try to drag the item in the visible hole, the toroid moves. In the Gnome2::Canvas, the item in the hole will be detected and moved. Maybe the beta state of Goo still has this as a limitation? Maybe you could work around it by adjoining separate images, so they have a whole in them.... kind of clunky. :-)

I'm not really a human, but I play one on earth Remember How Lucky You Are
  • Comment on Re: Goo Canvas clicking pass through transparency

Replies are listed 'Best First'.
Re^2: Goo Canvas clicking pass through transparency
by renegadex (Beadle) on Jul 25, 2008 at 14:43 UTC
    i got an idea.. how about putting a layer with transparent fill above the image and the transparent image? the layer at the bottom has no signal handler, instead the the layer with transparent fill recieved the signal and when moved, it moves and let the image at the bottom be dragged along with it. its like sandwiching the "transparent image w/ hole" between the "image" and the "transparent filled rectangle" !! maybe i try to make an example later. :D