[comp.windows.x] Background pixmaps

iellison@spike.axion.bt.co.uk (Ian Ellison-Taylor) (08/11/89)

Easy one this (I hope), how do I get the background pixmap (or border) of a 
window ?

Short I know, but size isn't important.

+----------------------------------------------------------------+
| Who  :  Ian Ellison-Taylor                                     |
| Where:  RT3151, Room G44, SSTF, British Telecom Research Labs, |
|         Heavy Weopons Division, Martlesham Heath,              |
|         Ipswich, IP5 7RE, UK.                                  |
| Phone:  +44 473 646619                                         |
| Email:  iellison@axion.bt.co.uk                                |
| Quote: "Zeesthwarg recommended texts:                          | 
|                                 Penguin pop-up Karma Sutra     |
|                                 C5 owners manual."             |
+----------------------------------------------------------------+

rws@EXPO.LCS.MIT.EDU (08/18/89)

    how do I get the background pixmap (or border) of a window ?

From the server, you can't.

JARMOLOWSKI%ESDSDF.DECnet@CRDGW1.GE.COM (09/23/89)

	I have some questions about the backgroundPixmap resource
supported by the Xaw widgets:

	Do they work in color ? On my Sun, specifying a background
pixmap causes the client to die with a "BadMatch" error.
Presumably this is because the background pixmap has a depth
of 1 and the color server wants a depth of eight.

	Also, a quick look at the string to pixmap conversion code in Xmu
seems to show that the widget will accept a background pixmap or
foreground/background colors but not both. It seems to me that
one should be able to specify all three parameters. The foreground 
and background colors would be used for painting the background
bitmap.

	Any comments ?


===========================================================================

				 _/_
				 /      __     ______
				<__    (_)    / / / <_


				Tom Jarmolowski
				jarmolowski%esdsdf.decnet@crd.ge.com
				(609) 722-4298

swick@ATHENA.MIT.EDU (Ralph R. Swick) (09/23/89)

>	I have some questions about the backgroundPixmap resource
> supported by the Xaw widgets:
>
>	Do they work in color ?

nope, they're broken...

> because the background pixmap has a [hardcoded] depth
> of 1

right