Re: Transparent background?

-- muppet <scott asofyet org> wrote
(on Friday, 14 November 2003, 12:42 PM -0500):

John McDermott said:

I've done Gtk programming in C and in Perl, but I don't know how to pack
one widget on top of another, nor how to create the transparent
background in the top window.  Any help will be appreciated.

on the other hand, labels are an example of a windowless widget which draws on
its parent.  this may be easier than trying to make a shaped GdkWindow if you
don't need to be able to drag that window around or anything.

is an EventBox transparent?

Yes. In fact, this was my first idea on reading John's post, but figured
that was much too simple a solution for what he was asking. However,
that's what I've done in one other situation. I placed an EventBox over
a GtkImage, and then connected signals to the EventBox. It then
*appears* like you're clicking on the GtkImage, but actually the
EventBox is receiving the click. Works great for having an image
"button" without having it act like one (i.e., get the shading, etc., on

Matthew Weier O'Phinney

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]