Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!zaphod.mps.ohio-state.edu!wuarchive!uunet!convex!texsun!gdfwc3!davids From: davids@gdfwc3 (David Reed Smith) Newsgroups: comp.windows.x Subject: Re: window dump WITH menus Message-ID: Date: 7 Jun 91 16:06:51 GMT References: <1991Jun4.023017.10894@bellcore.bellcore.com> Sender: usenet@gdfwc3.UUCP (Mr. News Poster) Reply-To: davids@gdfwc3 Distribution: usa Organization: General Dynamics, Fort Worth Division Lines: 42 In-Reply-To: ddavey@kiwi.uucp's message of 4 Jun 91 02:30:17 GMT In article <1991Jun4.023017.10894@bellcore.bellcore.com> ddavey@kiwi.uucp (Doug Davey) writes: Path: gdfwc3!jassys!egsner!convex!uunet!bellcore!kiwi!ddavey From: ddavey@kiwi.uucp (Doug Davey) Newsgroups: comp.windows.x Date: 4 Jun 91 02:30:17 GMT References: The key that unlocked capturing screen images with pulldown menus for me was setting the "saveUnder" resource to False. (Thanks for the tip Andrew.) For example: 1) Kick off your X application as follows: yourxapp -xrm "*saveUnder: False" 2) Then use xlswins to find the window id that you want. In this example we will use: 0x30016d 3) Then use sleep and xwd to dump the window. sleep 10 ; xwd -id 0x30016d >foo.xwd While the sleep is counting down, pull down the menu in your application, keep the menu pulled down, and smile. ------------------------------------------------------------------------ Doug Davey bellcore!bae!ddavey ddavey@bae.bellcore.com Thanks Doug (and everyone else) for the info. Doug's article brings up an annoying bug/feature in xwd. You can use the '-id' option, or the '-frame' option, but not both. That is, both xwd -frame -id 0xID > foo.xwd xwd -id 0xID -frame > foo.xwd Will get the correct window but without the frame. This happens to me on a Sun 3/50 and on a SGI 4D/20. Comments, solutions, denials? ... -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ David Smith davids@gdfwc3, General Dynamics, gdfwc3!davids@central.sun.com, Fort Worth Division or uunet!texsun!gdfwc3!davids ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~