🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38075

Colormaps

#38075
From: Eric Taylor
Date: Wed, 14 Mar 1990 17:33
48 lines
1369 bytes
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
Technical Details
Message-ID: <292@gazette.bcm.tmc.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!bcm!krebs.bcm.tmc.edu!etaylor

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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