home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- 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
- From: ihle@freia.inf.tu-dresden.de (Torsten Ihle)
- Subject: Label's on TrueColor visuals (Motif)
- Message-ID: <V2U8KTE@math.fu-berlin.de>
- Keywords: Motif, TrueColor
- Sender: news@math.fu-berlin.de (Math Department)
- Organization: Free University of Berlin, Germany
- Date: Fri, 13 Nov 1992 14:54:15 GMT
- Lines: 14
-
- Hi !
- I'm writing an application which draws a TrueColor-Image within a DrawingArea
- which is part of a MainWindow. To be able to draw the TrueColor-Image, i have
- to declare the DrawingArea as 24-Bit deep, hence I have to use a
- TrueColor-Visual for the DrawingArea, the MainWindow and the TopLevelShell.
- The Problem: I want to have a MenuBar with buttons in the MainWindow too, but
- to draw the Text in the button, the Xlib creates a GC whose according window
- is always the root window. My root window is (and should stay) 8-bit deep, so
- I everytime get an error "bad match".
- My workaround is to install my own error handler, (and all works fine), but
- isn't there something I missed ?
-
- Thanks in advance
-
-