[comp.windows.x] help with a porting problem...

anne@cbnewsi.att.com (anne.e.eagle) (09/05/90)

I have been porting some software from a SPARCstation 1 
to a 386 and have encountered a problem that no one 
around here can figure out.  Perhaps someone out there can 
shed some light???

My configuration is a 386 running System V/3.2.2 and
Open Look 2.0 with the HP-2D widgets.  Although the problem 
exists in a pure X11R3 or X11R4 environment too, I am using 
the Open Look X11R3-based server and compiling/linking with 
the X11R4 header files and libraries off the MIT tape.

Basically, it's a color issue.  When I put up a scroll bar or
valuator through my application, no matter how I futz with 
the background/foreground/GCfunction, I cannot for the life 
of me get the thumb to show up.  It is there, as I can point 
the mouse where I know the thumb should be, and grab it and 
scroll through the window.  I just can't see it.  I can, however, 
see the arrows just fine.  The problem is not in the widgets, 
because if I put them up via a program other than my application, 
everything is visible.  Also, if I use the application with a 
monochrome monitor, the thumb is visible.  It's only on the 
color monitor that the problem shows up, or does not show up, 
as the case may be... =-)   The application itself does not 
set up any GCs, and when I play with either my application 
resource file or my .Xdefaults, I can get the foreground/background 
to change, but never a visible thumb.  I've also tried setting 
the GC function to GCinvert, and that does not help.  I've tried 
exclusive or-ing the fore/background colors, also to no avail.  
I found that if I put "*foreground: black" and "*background: white" 
in my .Xdefaults, the thumb shows up as "static" - random pixels
are black.  This also happens in the cascade widget - instead
of the highlighted menu item inverting fore/background colors, I just
get the same color background and then static where
the text should be.  

If anyone has any ideas, they would be greatly appreciated.
If possible, responses by email would be best, as I don't
get to read news nearly as often as I'd like. 

Thanks very much -

Anne Eagle
anne@alfalfa.att.com