jepri has asked for the wisdom of the Perl Monks concerning the following question:

The title pretty much sums up my problem. I want Gtk::Pixmaps that are transparent, and can be clicked on. If I create them 'normally' they have transparent backgrounds, but they can't receive any events. If I surround them with a Gtk::EventBox then they can receive events, but the eventbox background is opaque.

Can anyone tell me how I can get both transparency and events at the same time?

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Pixmap + EventBox isn't transparent?
by jepri (Parson) on Apr 27, 2002 at 00:47 UTC
    The trick is to use the undocumented Gnome::Canvas object to display pictures on. You still can't get events from your pictures, but the Canvas object itself can receive events. It also has a few useful functions for dealing with the events (like telling you which image the user clicked on).

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.