Path: utzoo!utgpu!water!watmath!clyde!att!ucbvax!bloom-beacon!ATHENA.MIT.EDU!swick
From: swick@ATHENA.MIT.EDU (Ralph R. Swick)
Newsgroups: comp.windows.x
Subject: Re: X toolkit popup, colormap questions
Message-ID: <8809261204.AA12456@LYRE.MIT.EDU>
Date: 26 Sep 88 12:04:54 GMT
References: <552@apctrc.UUCP>
Sender: daemon@bloom-beacon.MIT.EDU
Organization: DEC/MIT Project Athena
Lines: 20


     Date:  23 Sep 88 18:57:41 GMT
     From:  apctrc!apctrc.uucp!zans02@uunet.uu.net  (Alan N. Stuart)

     1) how to  specify that a popup open at a pixel location 
        defined in my program.

Arrange, through one of the several methods, that your resource
database contain a .geometry resource for the popup shell, or use
XtSetValues to assign the XtNgeometry resource.

     2) how to set the colormap with a toolkit application. I have 
        tried using the XAllocColor macro to change the default 
        colormap, but my program core dumps when it hits Mainloop().

XAllocColor isn't likely to be the cause of this.  In R2 there is
no convenient way to give a private colormap to a widget, so using
the DefaultColormapOfScreen() is the easiest way to go.  (You _could_
get away with using Xlib calls on the window(s) after realizing
them..)  In R3, all widgets will have an XtNcolormap resource.