Path: utzoo!utgpu!attcan!uunet!husc6!tut.cis.ohio-state.edu!ichthyosaur.cis.ohio-state.edu!elwell From: elwell@ichthyosaur.cis.ohio-state.edu (Clayton M. Elwell) Newsgroups: comp.windows.news Subject: Re: Creating new icon fonts - Help required Keywords: icons, fonts,'findfilefont' Message-ID: <19845@tut.cis.ohio-state.edu> Date: 12 Aug 88 15:03:43 GMT References: <1564@crete.cs.glasgow.ac.uk> Sender: news@tut.cis.ohio-state.edu Organization: The Ohio State University Dept of Computer and Information Science Lines: 22 cathy@cs.glasgow.ac.uk (Catherine Anne Wood) writes: Is there an easy way to incorporate new icons into NeWS ? At the moment the only way I can see is to generate a new icon font ... and that seems to have its problems. Well, I've played with this a little. What I did was to create a new window class that (among other things) overrides the standard PaintIcon method. If the window's IconImage is a name, it just shows the icon as usual. If it's a canvas, though, it paints it using 'imagemaskcanvas' if it's monochrome or 'imagecanvas' if it's color. This lets you have multicolored icons on a color display. This way, too, the new icons can be compiled into your program (using buildimage), so that new users don't have to make sure that they have a new font installed. Clayton M. ElwellOhio State University CIS Dept. Research Computing Facility "... there was a *third* possibility that we hadn't even counted upon ..." --Arlo Guthrie, "Alice's Restaurant"