Article 129522 of comp.os.vms:
Newsgroups: comp.os.vms
Path: nntpd.lkg.dec.com!crl.dec.com!crl.dec.com!bloom-beacon.mit.edu!gatech!howland.reston.ans.net!agate!news.Stanford.EDU!unixhub!sldb6.slac.stanford.edu!fairfield
From: fairfield@sldb6.slac.stanford.edu
Subject: Re: DECWindow colors on Xterms -Help
Message-ID: <1995Sep16.213033.1@sldb6.slac.stanford.edu>
Lines: 79
Sender: news@unixhub.SLAC.Stanford.EDU
Organization: Stanford Linear Accelerator Center
References: <1995Sep13.094513.1@homer.ds.boeing.com>
Date: Sun, 17 Sep 1995 05:30:33 GMT

In article <1995Sep13.094513.1@homer.ds.boeing.com>,
    					haro@homer.ds.boeing.com writes:
> DECWindows on Xterms - Does anyone know how to change background color on
> DECWindows eg: Fileview so that when you display to an Xterm you don't get a
> default blue color. Changes made in DECWindows "window colors" are not
> inherited. I am looking at DECW$XDEFAULTS.DAT, but initial trys don't work.

        I  think  what  you  need  to   do  is  add  some  resources  to
    DECW$MWM.DAT.  There is a DSNlink article titled, "[Motif] Resetting
    Window  Border Colors Fails From Workspace Menu", which discusses  a
    number of different issues and includes an (longish) set of  example
    resource  settings (which are quite interesting in and of themselves
    :-).  I won't include it here, but a few lines are:

Mwm*menu*foreground:    #000000000000
Mwm*menu*topShadowColor:        #C4C4ADADA1A1
Mwm*menu*background:    #9851785167AD
Mwm*menu*bottomShadowColor:     #585849494141
Mwm*DECW$TERMINAL*iconImageForeground:  white
Mwm*DECW$TERMINAL*iconImageBackground:  blue
Mwm*DECW$CALENDAR*iconImageForeground:  black
Mwm*DECW$CALENDAR*iconImageBackground:  yellow

    Now according to the  manual,  "Using DECwindows Motif for OpenVMS",
    FileView  and the Session Manager share the "class" name VUE$MASTER.
    I'm "color-impaired" at the moment :-( so I can't test anything, but
    it's _possible_ that adding a line like:

Mwm*VUE$MASTER*background: beige

    would do the trick (pick a  valid color!).  Alternatively, you could
    create a resource file VUE$MASTER.DAT containing the line:

VUE$MASTER.background: beige

    I expect that  putting  either  resource  line  in the corresponding
    resource  file will do the trick for you (but I can't test it at the
    moment).  Please note that whatever  you  do  with  VUE$MASTER  will
    affect both the FileView and the Session Manager windows.

        OK, now  I'd  like  to  back  away  and  point  out  that  (1) a
    VUE$MASTER.DAt amy or may not be read by the session manager (I have
    reason  to believe is does _not_), and (2) you will find a whole set
    of  resource  files  in  DECW$SYSTEM_DEFAULTS  (and  possibly   your
    personal  DECW$USER_DEFAULTS)  named DECW$SMB*.DAT.  One of these is
    DECW$SMB_WINDOW_COLOR.DAT, which on my system contains:

sm.versionid:	3.0
*autoshade:	enable
*Background:	#CA94AA469193
*Foreground:	#000000000000
*topShadowColor:	#DC28BC3DA3D6
*bottomShadowColor:	#9851785167AD
*highlightColor:	#3F5B547A6999
*HighlightColor:	#3F5B547A6999
*topShadowPixmap:	unspecified_pixmap
*bottomShadowPixmap:	unspecified_pixmap

        The "starred" class names mean that these resources, by default,
    apply to _all_ class (i.e.,  all  applications).   I believe that if
    you pull down the Session Manager's "Options" menu, click on "Window
    Colors...", and change them and Save Options, that this file will be
    created  in your DECW$USER_DEFAULTS: directory with different values
    for the above resources.  I would _guess_  that  you  could  list  a
    different    set    of    colors   for   VUE$MASTER.background   and
    VUE$MASTER.foreground (and I know these things are case-sensitive so
    I don't know whether "Foreground"  is  a synonym for "foreground" or
    not, perhaps it's the difference between "VUE$MASTER*Foreground" and
    "VUE$MASTER.background"?).

        Well, those are some ideas.  Anyone else know what's going on?

            -Ken
--
 Kenneth H. Fairfield       |  Internet: Fairfield@Slac.Stanford.Edu
 SLAC, P.O.Box 4349, MS 46  |  DECnet:   45537::FAIRFIELD (45537=SLACVX)
 Stanford, CA   94309       |  Voice:    415-926-2924    FAX: 415-926-3515
 -------------------------------------------------------------------------
 These opinions are mine, not SLAC's, Stanford's, nor the DOE's...


