Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!inria!geocub!vuichard From: vuichard@geocub.greco-prog.fr Newsgroups: comp.windows.x Subject: Re: Graphics & Athena Widget set Message-ID: <158@geocub.greco-prog.fr> Date: 5 Jun 90 16:43:48 GMT References: <3504@calvin.cs.mcgill.ca> Sender: news@geocub.greco-prog.fr Reply-To: vuichard@goofi.UUCP ( " Le Gnome ") Organization: ENSERB 351 cours de la liberation 33405 TALENCE tel 56 84 65 00 Lines: 26 In article <3504@calvin.cs.mcgill.ca> pedro@quiche.cs.mcgill.ca (Sandro MAZZUCATO) writes: >Hi, > here is a question that is troubling me since I'm new in the X world >I the references I have are not complete. > > How can I create a window or frame of work, using the Athena Widget set , >where I can draw lines and circles etc .... Well, you can use any widget like a simple window. You just have to draw in its associated window obtained by XtWindow(). Personnally, I use the "simplest" widget, i.e. the Label Widget ... but don't forget your drawings will be erased by a mapping event ! To avoid this, use the XtNbitmap resource : for example, you can draw in both the window and the pixmap you associated to the widget, in order to see your drawings in "real time" and avoid mapping problems. ------------------------------------------------------------------------------- | ---- ___ | If Buddha had wanted Men to understand | | / /_ __ / _ __ __ ____ __ | Women, He wouldn't have give us aspirin | | / / / /_ /__/ / / /_/ / / / /_ | Confucius. | |-----------------------------------------------------------------------------| | vuichard@goofi.greco-prog.fr or vuichard@goofi.UUCP | | or ..!uunet!mcvax!inria!geocub!goofi!vuichard | -------------------------------------------------------------------------------