Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!wasatch!sunset.utah.edu!u-mlinds From: u-mlinds%sunset.utah.edu@wasatch.utah.edu (Mark Lindsey) Newsgroups: comp.windows.x Subject: Toolkit graphics Message-ID: <1901@wasatch.utah.edu> Date: 24 May 89 14:31:18 GMT Sender: news@wasatch.utah.edu Reply-To: u-mlinds%sunset.utah.edu@wasatch.utah.edu (Mark Lindsey) Distribution: usa Organization: University of Utah, Computer Science Dept. Lines: 24 As a programmer new to X and X Toolkit, I have a question. I am using X11R3. What is the accepted way to render graphics into a widget? Should I create my own widget to handle the graphics or can I grab the window of a generic Core widget, and render into the window? I have an application that uses 20x18 bitmaps, from 400 to 4000 of them. So, I assume I need to use XCopyPlane or XCopyArea. Any hints will be greatly appreciated. I want the result to be managed by a Viewport widget. Another question. How do I determine if a machine is monochrome or color? I thought I could determine it by examining the depth of an open screen. But it always returns 8, even on a monochrome machine. What am I missing? Any help will be greatly appreciated!! Mark ====================================================== Mark L. Lindsey u-mlinds@ug.utah.edu 374 E 1550 S University of Utah Orem, UT 84058 801-225-0948 Salt Lake City, UT ======================================================