Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!sun-barr!newstop!sun!falk From: falk@sun.Eng.Sun.COM (Ed Falk) Newsgroups: comp.graphics Subject: Re: RETAINED canvas in SunView Summary: use canvas_pixwin, not window_get(..., WIN_PIXWIN) Message-ID: <125554@sun.Eng.Sun.COM> Date: 30 Sep 89 01:42:31 GMT References: <6633@hubcap.clemson.edu> Organization: Sun Microsystems, Inc. - Mtn View, CA Lines: 19 In article <6633@hubcap.clemson.edu>, jaysun@saurez.eng.clemson.edu (Jay Williamson) writes: : > pw = (Pixwin *) window_get(canvas_panel, WIN_PIXWIN); canvases are different from other windows, you should use pw = (Pixwin *) window_get(canvas_panel, CANVAS_PIXWIN); instead. This is also defined as a macro for you: pw = canvas_pixwin(canvas_panel) ; No need to play with the retained attribute at all, retained is the default. -- -ed falk, sun microsystems, sun!falk, falk@sun.com "If you wrapped yourself in the flag like George Bush does, you'd be worried about flag-burning too"