Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!swrinde!ucsd!ucbvax!rchland.iinus1.ibm.com!dgross From: dgross@rchland.iinus1.ibm.com (Dave Gross) Newsgroups: comp.soft-sys.andrew Subject: setting default colors Message-ID: Date: 25 Oct 90 22:15:26 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Dave Gross Organization: The Internet Lines: 25 I'm having a problem setting default colors. I want to check whether the current display is color before I set them, but this requires a "struct graphic *". For example: if (graphic_DisplayClass(view_GetDrawable(self)) & graphic_Color){ graphic_SetDefaultColors("white","blue"); } This won't work in InitializeObject because I don't have a "drawable" yet. If I wait until InsertView or something, the default colors for the graphic are already set. I would like these defaults to be used by all subwindows of this view. Any ideas? Thanks, -- Dave Dave Gross IBM Rochester dgross@rchland.iinus1.ibm.com 507/286-6785