[comp.windows.x] Of Converters and UIL

MORTON@FCCC.EDU (Dan) (03/03/90)

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