Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Goo Canvas clicking pass through transparency

by zentara (Archbishop)
on Jul 25, 2008 at 14:03 UTC ( #700136=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://700136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2022-06-26 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?