Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!bloom-beacon!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: Various how-do-you-do-this things Message-ID: <19880729114555.6.RWS@KILLINGTON.LCS.MIT.EDU> Date: 29 Jul 88 11:45:00 GMT References: <4748@pasteur.Berkeley.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 17 Date: 29 Jul 88 05:08:59 GMT From: pasteur!cory.Berkeley.EDU!dheller@AMES.ARC.NASA.GOV (Dan Heller) Does anyone have any idea how to create an xterm subwindow within an application that will run any type of command I want? xterm isn't really sufficiently widgetized (yet) to make this easy. Is there a "stencil" like function so I can XPutImage or XCopyArea an XImage or Pixmap onto a drawable and have it be stenciled thru another bitmap or XImage? Yes, but using the bitmap as a clip-mask in the GC. But, if the bitmap is fairly complex, your R2 server may dump core. (You can change Region's numRects and size to longs to fix this, which is the way it will be in R3.) Also, as currently implemented, it will be rather slow.