finus@origin.nl (09/11/90)
I want to set the backgound of a widget, a bulletin board widget, to a certain pattern. To do that I use XReadFromBitmapFile to obtain a pixmap, I do this with the pattern-file /usr/include/X11/bitmaps/gray. The result is an X error message, which does not occur when I create the pixmap, but when the widget is realised: X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 53 (X_CreatePixmap) Minor opcode of failed request: 0 Resource id in failed request: 0x0 Serial number of failed request: 207 Current serial number in output stream: 255 Has anybody experienced this behaviour before and can anyone tell me what the appropriate procedure is for setting the background pixmap? Any help is appreciated. ---------------------------------+---------------------------------------------- OOO RRRR I GGG I N N | L.P. van Cadsand, ORIGIN-Middleware O O R R I G G I NN N | vestdijk 9, (Bldg. HCM 503) O O RRRR I G I N N N | 5611 CA Eindhoven, the Netherlands O O R R I G GG I N NN | Tel. +31 40 758161 Fax. +31 40 756008 OOO R R I GGG I N N | Email: finus@ait.philips.nl ---------------------------------+----------------------------------------------