[comp.windows.x] transparent buttons over pixmaps

denio@beno.CSS.GOV (Dennis O'Neill) (07/25/90)

I need to place pushbuttons at several locations over a pixmap, in this
case a satellite photo.  The pushbutton must be transparent, i.e., let
the satellite photo show through except for the button's border.

I am limited to using the tools distributed with x11r4; I would prefer to
use Xw functions but am willing to use Xaw functions.  Any suggestions?

What I've done so far:
  o  Xw BulletinBoard contains 
     -  Xw WorkSpace, containing satellite photo
     -  Xaw Command, with backgroundPixmap set to None, at appropriate
        locations.

This works, sort of, but I'm trolling for other approaches.  Any suggestions
will be greatly appreciated.

Dennis O'Neill
denio@seismo.css.gov

mouse@LARRY.MCRCIM.MCGILL.EDU (07/26/90)

> I need to place pushbuttons at several locations over a pixmap, in
> this case a satellite photo.  The pushbutton must be transparent,
> i.e., let the satellite photo show through except for the button's
> border.

> [What I've done so far] works, sort of, but I'm trolling for other
> approaches.

Well, how about this?  Draw the button picture by creating an
InputOutput window and setting its shape to just the shape you want.
Then create an InputOnly window covering the whole button and use that
to detect mouse clicks on the button.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu