home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / ultrix / 8293 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.2 KB  |  26 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!freia.inf.tu-dresden.de!ihle
  3. From: ihle@freia.inf.tu-dresden.de (Torsten Ihle)
  4. Subject: Label's on TrueColor visuals (Motif)
  5. Message-ID: <V2U8KTE@math.fu-berlin.de>
  6. Keywords: Motif, TrueColor
  7. Sender: news@math.fu-berlin.de (Math Department)
  8. Organization: Free University of Berlin, Germany
  9. Date: Fri, 13 Nov 1992 14:54:15 GMT
  10. Lines: 14
  11.  
  12. Hi !
  13. I'm writing an application which draws a TrueColor-Image within a DrawingArea
  14. which is part of a MainWindow. To be able to draw the TrueColor-Image, i have
  15. to declare the DrawingArea as 24-Bit deep, hence I have to use a
  16. TrueColor-Visual for the DrawingArea, the MainWindow and the TopLevelShell.
  17. The Problem: I want to have a MenuBar with buttons in the MainWindow too, but
  18. to draw the Text in the button, the Xlib creates a GC whose according window
  19. is always the root window. My root window is (and should stay) 8-bit deep, so
  20. I everytime get an error "bad match".
  21. My workaround is to install my own error handler, (and all works fine), but
  22. isn't there something I missed ?
  23.  
  24. Thanks in advance
  25.  
  26.