[comp.sys.hp] Motif WM not 3-D at HP-UX 7.0

kint@milton.u.washington.edu (Richard Kint) (08/09/90)

	I just arrived at this new job a month ago.  One of my first tasks
was to install HP-UX 7.0.  I experimented with the different window managers
shipped.  I am puzzled by my observation that hpwm has the funky 3-D effect
of Motif, while mwm window frames look flat and cartoonish by comparison.
Under mwm only menus have the beveling and shading;  the window frames and
decorations therein are just outlines.  Experimentation with color resources
did not alleviate the problem.

	As Andy Rooney would say, why is that?

Rick Kint
College of Engineering
University of Washington
kint@engr.washington.edu

munir@hpfcmgw.HP.COM (Munir Mallal) (08/09/90)

>	I just arrived at this new job a month ago.  One of my first tasks
>was to install HP-UX 7.0.  I experimented with the different window managers
>shipped.  I am puzzled by my observation that hpwm has the funky 3-D effect
>of Motif, while mwm window frames look flat and cartoonish by comparison.
>Under mwm only menus have the beveling and shading;  the window frames and
>decorations therein are just outlines.  Experimentation with color resources
>did not alleviate the problem.
>
>	As Andy Rooney would say, why is that?

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.

Munir Mallal

Disclaimer:  I speak only from my own experience.
	     HP did not tell me to say this.

keith@hpcvlx.cv.hp.com (Keith Taylor) (08/09/90)

>shipped.  I am puzzled by my observation that hpwm has the funky 3-D effect
>of Motif, while mwm window frames look flat and cartoonish by comparison.
>Under mwm only menus have the beveling and shading;  the window frames and
>decorations therein are just outlines.  Experimentation with color resources
>did not alleviate the problem.
>

On possibility is that you've got resources like *Foreground or
*Background specified. These are the resource classes of top and bottom
shadows and you can get a 2-D effect this route.

Possible fixes are:

1. Remove *Foreground/*Background resources (or change them to
   *foreground/*background).

2. Add a bunch of more specific resources for mwm.


Keith M. Taylor		keith@cv.hp.com	
Hewlett-Packard
Corvallis, Oregon

mayer@hplabsz.HPL.HP.COM (Niels Mayer) (08/11/90)

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: <color>
	*Foreground: <color>

or

	Mwm*Background: <color>
	Mwm*Foreground: <color>

	(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: <color>
	*bottomShadowColor: <color>
	*activeTopShadowColor: <color>
	*activeBottomShadowColor: <color>

or

	Mwm*topShadowColor: <color>
	Mwm*bottomShadowColor: <color>
	Mwm*activeTopShadowColor: <color>
	Mwm*activeBottomShadowColor: <color>


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.
				   *

ac1@rosemary.cs.reading.ac.uk (Andrew Cunningham) (08/11/90)

In article <6046@milton.u.washington.edu> kint@milton.u.washington.edu (Richard Kint) writes:
>
>	I just arrived at this new job a month ago.  One of my first tasks
>was to install HP-UX 7.0.  I experimented with the different window managers
>shipped.  I am puzzled by my observation that hpwm has the funky 3-D effect
>of Motif, while mwm window frames look flat and cartoonish by comparison.
>Under mwm only menus have the beveling and shading;  the window frames and
>decorations therein are just outlines.  Experimentation with color resources
>did not alleviate the problem.
>

IMHO, the default is pretty ugly.

My mwm is nice and three-d.  I spend some time hacking/borrowing
resources to get it to look the way I wanted.

I have (for nice grey menus and things) the defaults below.  As a quicker
route you might want to use ``*makeColors: shadow'' to turn the three-d
effect on.

! Color Settings
Mwm*Background:			Gray
Mwm*Foreground:			Black
Mwm*activeTopShadowColor:       White
Mwm*activeBottomShadowColor:    DimGray
Mwm*topShadowColor:             LightGray
Mwm*bottomShadowColor:          DimGray
Mwm*menu*topShadowColor:        White
Mwm*menu*bottomShadowColor:     DimGray
Mwm*menu*Background:		LightGray
Mwm*menu*Foreground:		White
Mwm*iconImageBottomShadowColor: Black
Mwm*iconImageTopShadowColor:    White
Mwm*activeForeground:		White
Mwm*activeBackground:		LightGray
Mwm*iconImageBackground:	LightGray
Mwm*iconImageBottomShadowColor:	Black
Mwm*iconImageForeground:	Black
Mwm*iconImageTopShadowColor:	White
! Generate any 3-d effects not specified
Mwm*makeIconColors:		shadow
! Place clients according to their requested jommetrys
Mwm*clientAutoPlace:		false
! Point to type, not point and click
Mwm*keyboardFocusPolicy:        pointer
! Stop huge windows
Mwm*maximumMaximumSize:		1280x1024
! Smaller and neater than the normal handles
Mwm*resizeBorderWidth:          7
! A transient shouldn't be around long enough for you to want
! to resize it anyway.  
Mwm*transientDecoration:	border title
! So that the client can change icons while running (e.g. mailers)
Mwm*useClientIcon:		True
! Hpwm style default logon on icons
Mwm*iconImage:			/usr/include/X11/bitmaps/xlogo32
! And much, much more, which has been deleted in the interests of
! not boring the pants off you.

AndyC


Yours etc,                      | e-mail: ac1@csug.cs.reading.ac.uk
Captain B.J. Smethwick          |------------------------------------------
in a white wine sauce with      | Nobody agrees with my opinions, though
shallots, mushrooms and garlic. | everybody is entitled to them.