Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: loading resources problem Message-ID: <9003221743.AA07433@expo.lcs.mit.edu> Date: 22 Mar 90 17:43:46 GMT References: <6230@crdgw1.crd.ge.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 32 > If I check the resource > values using XtGetApplicationResources, the values are > foreground= 1, background= 1, and reverse video = 1. if foreground_pixel == backgroun_pixel then you will be getting black on black (or green on green or whatever) so it is not surprising that you cannot see the button label. > If I then > load .FORMEDIT, then run ROWTEST, the buttons show up in normal > video (black on white) and the values are foreground= 1, > background= 1, and reverse video = 0. Either your widget isn't using foreground and background to paint its button or you have read the values in these variables wrong. If these colors are pointing to the same cell in the colormap there is no way to get foreground and background to be different colors. ReverseVideo in Xt just replaces XtDefaultForeground with WhitePixel and XtDefaultBackground with Black Pixel. If you application has set its forground default color to "black" rather than to "XtDefaultForeground" then you will get black on black when you turn on ReverseVideo. ReverseVideo in the toolkit always means White on Black it does not mean to swap the foreground and background colors. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213