[103] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Frame around the pixmap in button and color
daemon@ATHENA.MIT.EDU (Federico Mena)
Tue May 13 09:56:13 1997
Date: Tue, 13 May 1997 08:54:57 -0500
From: Federico Mena <federico@nuclecu.unam.mx>
To: gtk-list@redhat.com
In-reply-to: <337864CE.11DAB517@aibon.ping.de> (message from Sascha Ziemann on
Tue, 13 May 1997 14:55:42 +0200)
Reply-to: federico@nuclecu.unam.mx
Resent-From: gtk-list@redhat.com
> Yes. I found this notation in one of the xpm files that came with
> bmpbrowser which I installed a few hours ago. But that does the job
> only half. The background of the xpm is as gray as the button but
> when you place the mouse over the button the parts which should be
> transparent do not become bright, but stay in the normal gray.
There's a very good example of how to use pixmaps in buttons in
gtk/testgtk.c. Look at the create_pixmap() function; the relevant
part is around line 540. You have to create separate GdkPixmaps for
each of the possible states of the button, and later you squish them
together into a pixmap widget.
Quartic
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null