Path: utzoo!mnetor!uunet!husc6!rutgers!paul.rutgers.edu!segall From: segall@styx.rutgers.edu (Ed Segall) Newsgroups: comp.lang.smalltalk Subject: Re: How do I make ST80 reverse-video all text views? Message-ID: Date: 23 Mar 88 22:46:16 GMT References: Organization: Rutgers Univ., New Brunswick, N.J. Lines: 47 >Is there a clean way to get the text views in workspaces, browsers, >and other useful objects to default to reverse video all the time? I >thougt I had found the answer in TextConstants associationAt: >DefaultRule, since it looked to me like this specified the default >rule for displaying text on Forms. Unfortunately, it didn't seem to >work. Any recommendations? I spoke prematurely. I have found that if I change DefaultRule to 12 (destination = source inverted) text windows do write text in reverse-video. The background stays white, though. To change this, I looked around and found that the color of the inside of a view is at least partially determined by the View instance variable insideColor. In order to make all new View (and subclass) instances come up with an inside color of black, I changed the View|new code from ^super new initialize to ^super new initialize insideColor: Form black. This almost works - when a new view opens, it's inside color is black, and text is white. Unfortunately, something about the process of editing text changes the background color to white again, causing the letters and words to be surrounded by little black rectangles on a white background - very distracting. I haven't yet puzzled out what is changing the background back to white. If anyone knows a clean way to prevent this, I would appreciate finding out. Also, the borders should probably be changed to white, to make it possible to see where one window starts and the next one ends. More importantly, I should change the cursor to xor or white so I can see where it is on the black backgrounds. You can see why I am asking for advice - there are a number of details to be taken care of, and I can imagine getting screwy results if it is not done "right". Thanks, Ed -- uucp: ...{harvard, ut-sally, sri-iu, ihnp4!packard}!topaz!caip!segall arpa: segall@CAIP.RUTGERS.EDU