🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37615

Of Converters and UIL

#37615
From: Dan
Date: Fri, 02 Mar 1990 18:42
27 lines
1598 bytes
I have written a small program using the Motif toolkit which does nothing more
than display a label.  The program contains a StringtoPixel converter that
references my own colormap.  In my colormap, "black" maps to a pixel value of
0 and "white" maps to 255.  If the program instantiates the label widget in C
code the label is visible, with the text being written in the foreground color
(value) of white (255).  If the label is instantiated via the UIL, the label is
not visible; it is written with a foreground value of 1, which is not
initialized im my colormap.

It behaves as if Motif is not invoking my converter when the UIL is used.
Does anyone know why this might be so?  It's a short program that demonstrates
the problem (contains both C and UIL code, commented appropriately), and should
run on any PseudoColor display.  I would gratefully post it to anyone who might
have an interest in helping me understand what is happening.

--------------------------------------------------------------------------------
Return address: 
 
MORTON@FCCC.EDU
 
Dan Morton                                      
Fox Chase Cancer Center
7701 Burholme Avenue
Philadelphia, PA 19111
USA
 
(215) 728-3644
Technical Details
Message-ID: <CEB49EE3FE7F805DC5@fccc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!FCCC.EDU!MORTON

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!FCCC.EDU!MORTON
From: MORTON@FCCC.EDU (Dan)
Newsgroups: comp.windows.x
Subject: Of Converters and UIL
Message-ID: <CEB49EE3FE7F805DC5@fccc.edu>
Date: 2 Mar 90 18:42:00 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 27