[comp.windows.x.motif] hotspots?

ab2y+@andrew.cmu.edu (Antoine Paul Brusseau) (04/03/91)

I have a drawing area with a bit map on it. I was wondering if there is
an easy way to make hotspots with motif buttons. I've made a few paltry
attempts by creating a form widget with the drawing area as the parent
and placing buttons without boarders on it, but it erases the bitmap
below it. Also, when I use XmNOffset to place the button, the bitmap
from that particular side to the button is erased too. If anyone has any
suguestions or tips please let me know. 
	Thanks,
	-Tony
	ab2y+@andrew.cmu.edu

slh@wolf.cs.washington.edu (Scott Heyano) (04/05/91)

In article <kbyGm2m00VpOB3SkZM@andrew.cmu.edu> ab2y+@andrew.cmu.edu (Antoine Paul Brusseau) writes:
|I have a drawing area with a bit map on it. I was wondering if there is
|an easy way to make hotspots with motif buttons. I've made a few paltry
|attempts by creating a form widget with the drawing area as the parent
|and placing buttons without boarders on it, but it erases the bitmap
|below it. Also, when I use XmNOffset to place the button, the bitmap
|from that particular side to the button is erased too. If anyone has any
|suguestions or tips please let me know. 

	A few suggestions of things to try:
	(as children of the widget where you do your drawing)
	1. use gadget buttons
	2. set the subwindow_mode of the gc to IncludeInferiors
	3. use a pixmap: set it for your parent's background and also
	   for your buttons, but with an offset
	   (don't remember what this is called off the top of my head,
	    but is supported by xlib)
	4. create your own widget class based on an InputOnly window

	I don't know if (1)/(3) will give the desired results,
	(2) may be slow on your system,
	(4) will definitely work