Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "328) Why does my X11R6 program crash with undefined symbol"
Next document is "330) How can I display an xwd in a window (without using xwud)?"
329) 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);
Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "328) Why does my X11R6 program crash with undefined symbol"
Next document is "330) How can I display an xwd in a window (without using xwud)?"