Path: utzoo!utgpu!watserv1!watmath!att!ucbvax!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: How to shape a window (widget)? Message-ID: <9006051200.AA28557@Larry.McRCIM.McGill.EDU> Date: 5 Jun 90 12:00:24 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 22 > Could someone please let me know (email) of any leads on how to > create a widget that can assume any shape? I can tell you how to give a window a shape. I haven't a clue how this would interact with the toolkit or widget mechanisms. First, make sure your libraries and server support the SHAPE extension. (This pretty much means they have to be R4.) Then all you need to do is use XShapeCombineRegion, XShapeCombineRectangles, XShapeCombineMask or XShapeCombineShape to give your window the shape you want. Xeyes, I feel sure, uses XShapeCombineMask; representing those ovals as lists of rectangles would be a lot more work than it's worth. Look at the R4 documentation on the SHAPE extension for more info. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu