Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!WSL.DEC.COM!haynes From: haynes@WSL.DEC.COM Newsgroups: comp.windows.x Subject: Re: bitmaps in widgets Message-ID: <8805040112.AA02527@gilroy.dec.com> Date: 4 May 88 01:12:55 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 >> does anybody >> have a "graphics" widget which I could use the general Xlib drawing >> commands with? > >create an instance of the Core widget (class "widgetClass"). This almost works, the biggest problem is that Core doesn't have a repaint proc, and even if it did, a per-class repaint proc isn't what you want for a window widget. You want to make a simple subclass of core that has a repaint proc in the instance, and a class repaint method that calls the instance repaint proc. Alternatively do what Ralph suggested, but register an expose event handler explicitly. -- Charles