Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!mimsy!mojo!eng.umd.edu!stripes From: stripes@eng.umd.edu (Joshua Osborne) Newsgroups: comp.windows.x Subject: Re: Macintosh vs. X windows Message-ID: <1991Feb4.172313.19989@eng.umd.edu> Date: 4 Feb 91 17:23:13 GMT References: <9101290635.AA15587@lightning.McRCIM.McGill.EDU> Sender: news@eng.umd.edu (C-News) Reply-To: stripes@eng.umd.edu (Joshua Osborne) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 21 In article , auvdeso@auvc15.tamu.edu (John DeSoi) writes: [...] > One example that comes to mind is working with regions. The Mac > toolbox can tell you if a point is in a region defined by any > arbitrary combination of closed graphics figures. From what I know > about X so far, it appears that only regions constructed from > rectangles and polygons are supported. If I'm developing a drawing > application where I need to know if the user clicked in a circle on > the screen, I would hate to have to write the code to figure this out > myself. If you have the SHAPE extention (it is in all the MIT X11R4 servers), create a round window and ask for button events in it. If you use the toolkit you can try to do it with the elipse ShapeStyle buttons, most likely it should take less then 5 min or so... (5 min more then a button shaped like a rectangle). -- stripes@eng.umd.edu "Security for Unix is like Josh_Osborne@Real_World,The Multitasking for MS-DOS" "The dyslexic porgramer" - Kevin Lockwood "CNN is the only nuclear capable news network..." - lbruck@eng.umd.edu (Lewis Bruck)