Article View: comp.windows.x
Article #24047help with colormaps
From: BUCKHOLTZ_G%RMC.CA
Date: Mon, 24 Jun 1991 17:45
Date: Mon, 24 Jun 1991 17:45
26 lines
1518 bytes
1518 bytes
Hi!
I have been experiencing problems with setting the colormap
resource on my Motif Widgets. My goal is to make a gray scale
colourmap for my image processing application. I create a colourmap
with the following command:
cmap = XCreateColormap(dpy,win,vix,AllocAll);
I then try to set the colormap resource using XtSetValues.
When I do this I get the following error:
X Toolkit Warning: Cannot allocat colomap entry for "white"
X Protocol error: BadValue, integer parameter out of range for operateio
Major opcode of failed request: 91 (X_QueryColors)
Minor opcode of failed request: 0
Resource ik in failed request: 0x7537dc08
Serial number of failed request: 724
Current serial number in output stream: 724
I can buy the warning that a colormap entry "white" cannot
be allocated since I have declared that I have allocated all of the
colour cells when I created the colourmap. I don't know what could
be generating the BadValue error though.
Any hints or thoughts are appreciated.
bye,
Glenn
Technical Details
Message-ID:
<910624.12573349.003243@RMC.CP6>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-linesShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: BUCKHOLTZ_G%RMC.CA@mitvma.mit.EDU Newsgroups: comp.windows.x Subject: help with colormaps Message-ID: <910624.12573349.003243@RMC.CP6> Date: 24 Jun 91 17:45:58 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 26