Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!bcm!krebs.bcm.tmc.edu!etaylor From: etaylor@krebs.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Colormaps Message-ID: <292@gazette.bcm.tmc.edu> Date: 14 Mar 90 17:33:57 GMT Sender: usenet@bcm.tmc.edu Lines: 48 I am using the XtSetWMColormapWindows in my program. While swm seems to be correct in handling it, twm seems to ignore it. MY code segment is. main() { Widget toplevel ; Widget parent ; Widget img1,img2 ; Colormap cmap1,cmap2 ; Widget imgs[3] ; int nimgs = 0 ; XImage *image1 ; XImage *image2 ; toplevel = XtInitialize(...) ; parent = XtVaCreateManagedWidget( .... ) ; /* Create the images and colormaps */ img1 = XtVaCreateManagedWidget("",an image widget class,parent, XtNcolormap,cmap1, XtNimage,image1, NULL) ; img2 = XtVaCreateManagedWidget("",an image widget class,parent, XtNcolormap,cmap2, XtNimage,image2, NULL) ; XtRealizeWidget(toplevel) ; imgs[nimgs++] = img1 ; imgs[nimgs++] = img2 ; imgs[nimgs++] = toplevel ; XtSetColormapWindows(toplevel,imgs,nimgs) ; XtMainLoop() ; } When I examine the properties of the windows using a window property viewer, all of thje properties, and attributes seem to be correct. What is the problem? Eric Taylor Baylor College of Medicine