[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

702.0. "XCreateWindow() depth problem" by CURIE::FORBES (Windows are panes in the glass) Sun Apr 30 1989 13:52

I am having trouble creating a window of depth 4 (or any depth != 8)
on my 8-plane DS3100.  I haven't checked if the problem exists on a VAX.
shouldn't an XCreateWindow() with depth=4 work OK for a PseudoColor device?
do I need to monkey with the visual structure entries?
If anyone has a simple sample program that uses fewer planes than its parent
window, could you post it as a reply?  thanks!

T.RTitleUserPersonal
Name
DateLines
702.1Depth is not arbitrary...DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Tue May 02 1989 10:1618
    You can't just arbitrarily specify any depth.  The depth must be
    explicitly supported for the particular visual type that you are asking
    for.  On a VAXstation/GPX, for example, you can always get depth 1 (for
    a pixmap only), and you can get either depth 8 or 4 depending on the
    hardware configuration.  In the latter case, the visual type you can
    get is PseudoColor (or GrayScale if your system is set up as
    monochrome).
    
    If I remember right, the DS has lots of visual types to choose from.
    I don't know if they support more than depth 1 and (depth of screen).
    Probably not.  There is usually not a good reason to.
    
    Maybe someone from Ultrix land knows this for sure, but you can check
    easily enough by using XVisualInfo.
    
    Burns