Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!zaphod.mps.ohio-state.edu!usc!ucsd!ucbvax!rchland.iinus1.ibm.com!dgross From: dgross@rchland.iinus1.ibm.com (Dave Gross) Newsgroups: comp.soft-sys.andrew Subject: Re: setting default colors Message-ID: Date: 16 Nov 90 15:56:42 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Dave Gross Organization: The Internet Lines: 32 Excerpts from ext.cmu.info-andrew: 29-Oct-90 Re: settingdefault colors Gary Keim@RCHGATE.rchlan (958+0) > Excerpts from misc: 25-Oct-90 setting defaultcolors Dave > Gross@rchland.iinus (644) >> This won't work in InitializeObject because I don't havea "drawable" >> yet. If I wait until InsertView orsomething, the default colors for the >> graphic arealready set. I would like these defaults to be used byall >> subwindows of this view. > Yes, check for the display-class in either the InsertView ofFullUpdate > methods. There is a single DefaultForeground and DefaultBackgroundcolor > for all graphics in the process. When a view is inserted into > theview-tree, it's fore- and background colors are set to the defaults. > A viewcan then set it's own colors or just go with the defaults by > taking no action. > In conclusion, set the default fore- and background color when youtest > for the display-class. If they've already been set, that's OK. > Unlessyour child views reset the defaults or set their own view-specific > colors,your default settings will come through. I finally got around to trying this and it still doesn't work. The problemstill is that if I wait until InsertView of the parent view, allthe subwindows' graphics have been set up (i.e., they have read in the defaultcolors from graphic before I get a chance to change them). Is there any other way, or can this be fixed? Thanks, -- Dave