How do I make invisible buttons?
- From: Mike Kelly <tfsmiles ecst csuchico edu>
- To: gtk-list redhat com
- Subject: How do I make invisible buttons?
- Date: Sun, 25 Apr 1999 11:28:38 -0700
I'm looking for a way to make a table of buttons which are invisible to
the user except for the pixmaps which are contained within them.
Ideally, this would result in a grid-work of images that would preform some
action when pressed. The effect I'm looking for is like that of the game of
"memory", where I would have a grid of card-backs showing, and when you
clicked on a card, it would flip over to reveal the picture on it's face.
It seems easiest to me to make a grid of buttons with pixmaps in them. The
only problem with this approach is that each button shows a relief around it,
which I want to avoid. I've tried changing the button's relief to
GTK_RELIEF_NONE, which works fine until the button gets focus, at which
point it draws a relief.
I'm completely open to different ideas on how to best implement this, if
you think that I'm going about this the wrong way.
PS, I'm not a regular reader of this list, so please make sure I get a copy
of your reply.
TIA,
Mike
(:
--
--------TFSmiles@ecst.csuchico.edu-----------------The_glass_is_too_big--------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]