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)? See reader questions & answers on this topic! - Help others by sharing your knowledge 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); User Contributions: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 | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: kenton@rahul.net (Ken Lee)
Last Update March 27 2014 @ 02:11 PM
|
Comment about this article, ask questions, or add new information about this topic: