Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page

Top Document: Motif FAQ (Part 9 of 9)
Previous Document: 324) Why does my X11R6 program crash with undefined symbol
Next Document: 326) How can I display an xwd in a window (without using xwud)?


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

325) How do I programatically control xwd to dump a specific window?


I need a non-interactive way to tell xwd what X window to make an image of...
NOT by the traditional point-and-click method.
[Last modified: July 95]

Answer: Ken Sall (ksall@cen.com) wrote:

1. Get the window id of the toplevel shell widget using the "XtWindow"
function.
2. Invoke "xwd" from the program that has access to the window id, such as:

Window dumpId; /* returned from XtWindow */
sprintf (cmd_string, "xwd -frame -out tmp.xwd -id 0x%x", dumpId);
system (cmd_string);




Top Document: Motif FAQ (Part 9 of 9)
Previous Document: 324) Why does my X11R6 program crash with undefined symbol
Next Document: 326) How can I display an xwd in a window (without using xwud)?

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)

Last Update May 13 2007 @ 00:23 AM