Article View: comp.windows.x
Article #24188Drawing graphics with the Athena Toolkit (QUESTION)
From: Wayne Crawford
Date: Thu, 27 Jun 1991 20:47
Date: Thu, 27 Jun 1991 20:47
26 lines
1795 bytes
1795 bytes
I've been attempting to write my first X program using the Athena
widget set (for portability). Everything was going along fine until
I tried to create a widget to draw to. I was using a Label widget
and trying to create a bitmap (I know, depth=1) using XCreatePixmap,
and then using XSetArg and XSetValues to load the info into the Label
widget's resource. I was a bit confused as to what to specify as the
window in XCreatePixmap; I've tried both the LAbel widget itself, and
an independent window I created using XCreateSimpleWindow. No matter,
in both cases as soon as I tried to load the bitmap into the Label
widget's bitmap resource, i got the following message:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 1 (X_CreateWindow)
Minor opcode of failed request: 0
Resource id in failed request: 0x72610
Serial number of failed request: 46
Current serial number in output stream: 48
What? Help? I'd really like to know how to make this work. I'd
especially like to know of a solution that doesn't require me to
resize the bitmap everytime the aplication is resized. I'd be
especially overjoyed to learn where I can get a sample Athena Toolkit
program that does the right thing.
Thanks,
Wayne Crawford
Technical Details
Message-ID:
<1131@chiton.ucsd.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!usc!ucsd!chiton!wayneShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!usc!ucsd!chiton!wayne From: wayne@chiton.ucsd.edu (Wayne Crawford) Newsgroups: comp.windows.x Subject: Drawing graphics with the Athena Toolkit (QUESTION) Keywords: Athena, graphics Message-ID: <1131@chiton.ucsd.edu> Date: 27 Jun 91 20:47:13 GMT Reply-To: wayne@mpl%ucsd.edu (Wayne Crawford) Distribution: comp.windows.x Organization: Marine Physical Laboratory, UCSD Lines: 26