Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hplabsz!mayer From: mayer@hplabsz.HPL.HP.COM (Niels Mayer) Newsgroups: comp.sys.hp Subject: Re: Motif WM not 3-D at HP-UX 7.0 Message-ID: <5777@hplabsz.HPL.HP.COM> Date: 10 Aug 90 19:03:21 GMT References: <6046@milton.u.washington.edu> <1080164@hpfcmgw.HP.COM> Reply-To: mayer@hplabs.hp.com (Niels Mayer) Organization: Hewlett-Packard Labs, Software & Systems Lab, Palo Alto, CA. Lines: 177 Summary: Expires: Sender: Followup-To: In article <1080164@hpfcmgw.HP.COM> munir@hpfcmgw.HP.COM (Munir Mallal) writes: >Mwm does not automatically create the colors unless you provide the following >definitions: > >Mwm*topShadowColor: >Mwm*bottomShadowColor: >Mwm*activeTopShadowColor: >Mwm*activeBottomShadowColor: > >You do not have to specify any color. I'm not sure if that's just a side effect for overriding some other incorrectly set resources... In order to get Motif to automatically generate colors, the thing to remember is DO NOT set: *Background: *Foreground: or Mwm*Background: Mwm*Foreground: (note capitalized first letter, indicating a resource class: top/bottom shadow colors are of class "Background" and "Foreground" and this will PREVENT colors from being automatically generated since it is equivalent to forcing the top/bottom shadow colors....) likewise, DON'T set *topShadowColor: *bottomShadowColor: *activeTopShadowColor: *activeBottomShadowColor: or Mwm*topShadowColor: Mwm*bottomShadowColor: Mwm*activeTopShadowColor: Mwm*activeBottomShadowColor: For what its worth, here's my resource settings for MWM... there may be some old invalid resources here that I haven't bothered to remove. Note the commented out "makeActiveColors: none" and the commented out top and bottom shadow colors -- these come from the days when I didn't have enough colors to display Motif auto-generated shadings on my old 4 plane "topcat" boards (now I have 8 plane 98550's, so I go wild w/ color). -------------------- # # Global: # *foreground: White *background: DarkSlateGray # # MWM # Mwm*iconBoxGeometry: 18x1+0+0 Mwm*buttonBindings: ButtonBindings Mwm*keyBindings: KeyBindings Mwm*useIconBox: True Mwm*iconAutoPlace: True Mwm*fadeNormalIcon: True Mwm*iconDecoration: label image activelabel Mwm*iconPlacement: top left Mwm*iconPlacementMargin: 0 Mwm*iconbox*clientDecoration: maximize minimize menu # Mwm*iconbox*vScrollBar*width: # Mwm*iconbox*vScrollBar*shadowThickness: # doesn't work Mwm*iconbox*vScrollBar*background: Grey # doesn't work Mwm*iconbox*vScrollBar*foreground: White Mwm*iconbox*hScrollBar*height: 1 Mwm*iconbox*hScrollBar*shadowThickness: 0 # doesn't work Mwm*iconbox*hScrollBar*background: Grey # doesn't work Mwm*iconbox*hScrollBar*foreground: White Mwm*iconbox*selectColor: DarkSlateGrey Mwm*iconClick: False Mwm*wMenuButtonClick: False Mwm*wMenuButtonClick2: False Mwm*xterm*iconImage: /usr/local/include/X11/bitmaps/term-i.h Mwm*hpterm*iconImage: /usr/local/include/X11/bitmaps/term-i.h Mwm*gnuvo*iconImage: /usr/local/include/X11/bitmaps/gnuvo-i.h Mwm*x11lock*iconImage: /usr/local/X11/x11lock/padlock.bm Mwm*x11emacs*iconImage: /usr/local/include/X11/bitmaps/gnuemacs-i.h Mwm*datebook*iconImage: /usr/local/include/X11/bitmaps/datebook-i.h Mwm*xclock*iconImage: /usr/local/include/X11/bitmaps/clock Mwm*xwebster*iconImage: /usr/local/include/X11/bitmaps/xwebster-i.h Mwm*clipboard*iconImage: /usr/local/include/X11/bitmaps/scrap-i.h Mwm*XMan*iconImage: /usr/local/include/X11/bitmaps/xman-i.h Mwm*Cscope*iconImage: /usr/local/include/X11/bitmaps/cscope-i.h Mwm*xhexcalc*iconImage: /usr/local/include/X11/bitmaps/calc-i.h Mwm*saveUnder: True Mwm*interactivePlacement: True Mwm*keyboardFocusPolicy: Pointer Mwm*colormapFocusPolicy: Pointer Mwm*focusAutoRaise: False Mwm*positionOnScreen: False Mwm*resizeCursors: True Mwm*resizeBorderWidth: 5 Mwm*matteWidth: 0 Mwm*menu*bottomTitleSeparator*separatorType: single_line Mwm*feedback*confirmbox*highlightColor: Red Mwm*XClock*clientDecoration: none Mwm*xperfmon*clientDecoration: none Mwm*moniterm*clientDecoration: none Mwm*Gnuvominibuffer*clientDecoration: border Mwm*console*clientDecoration: none Mwm*xckmail*clientDecoration: none Mwm*cutdisp*clientDecoration: none Mwm*client*fontList: hp8.10x20b Mwm*menu*fontList: 8x13 Mwm*icon*fontList: 6x13 Mwm*feedback*fontList: fg-40 # Mwm*makeColors: none Mwm*foreground: White Mwm*background: BlueViolet # Mwm*topShadowColor: LightBlue # Mwm*topShadowTile: foreground # Mwm*bottomShadowColor: Black # Mwm*bottomShadowTile: foreground Mwm*icon*topShadowColor: LightBlue Mwm*icon*bottomShadowColor: Black Mwm*client*topShadowColor: LightBlue Mwm*client*bottomShadowColor: Black # Mwm*client*activeTopShadowColor: White # Mwm*client*activeBottomShadowColor: Black # Mwm*client*topShadowTile: foreground # Mwm*client*bottomShadowTile: foreground # Mwm*client*activeTopShadowTile: foreground # Mwm*client*activeBottomShadowTile: foreground # Mwm*makeActiveColors: none Mwm*activeForeground: Yellow Mwm*activeBackground: DarkOrchid Mwm*activeTtopShadowColor: LightBlue Mwm*activeBottomShadowColor: Black # Mwm*makeIconColors: none Mwm*iconImageForeground: White Mwm*iconImageBackground: DarkOrchid # Mwm*iconImageTopShadowColor: Black # Mwm*iconImageTopShadowTile: foreground # Mwm*iconImageBottomShadowColor: LightBlue # Mwm*iconImageBottomShadowTile: foreground # Mwm*makeMatteColors: none # Mwm*matteBackground: DarkSlateGrey # Mwm*matteForeground: Yellow Mwm*menu*background: Wheat Mwm*menu*foreground: Black Mwm*menu*activeBackground: Blue Mwm*menu*activeForeground: Wheat ------------------------------------------------------------------------------- Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com Human-Computer Interaction Department Hewlett-Packard Laboratories Palo Alto, CA. *