Martin Cartwright wrote:
>
> Also what does that last ChangeDecor "Default" do?
It sets up the initial "state" -- actually, since "default" is the
default state, it's not really needed.
On the subject of decors, I've come up with functions that will provide
a MWM- type and Win95- type windows (including redefining how the mouse
will work on each button).
My only real experience with mwm was in the early 1.0 phase, so somebody
may have a better "look" (mostly colors) for how my Mwm style works.
I've MIME-attached my .fvwm-decors file (which is read by my .fvwm2rc
file).
I've already sent my win95-*.xpm files to this list. Maybe one day I'll
get around to putting this stuff on a web site, but don't hold your
breath...!
--
(void) lar3ry(); gensch_at_zk3.dec.com
"Sometimes it happens. People just explode. Natural causes."
##########################################################################
# FVWM Look and Feel Code (Mostly Decors)
#========================================================================#
#
##########################################################################
# Function: Disable ALL buttons
# (This needs to be called when resetting between Win95's
# 4-button title bar to MWM's 3-button title bar)
#========================================================================#
DestroyFunc "RemoveAllButtons"
AddToFunc "RemoveAllButtons"
+ "I" Style "*" NoButton 0, NoButton 1, NoButton 2, NoButton 3, \
NoButton 4, NoButton 5, NoButton 6, NoButton 7, \
NoButton 8, NoButton 9
##########################################################################
# Function: Replace "placeholder"
# (You will need this function if you haven't made the
# patch to add the "Replace" builtin into fvwm-2.0.44 --
# Simply uncomment the three lines below)
#========================================================================#
#DestroyFunc "Replace"
#AddToFunc "Replace" Nop
#+ "I" Nop
##########################################################################
# Win95 Look and Feel
#========================================================================#
DestroyDecor Win95
AddToDecor Win95
+ TitleStyle LeftJustified ActiveUp (Solid Navy -- flat) \
ActiveDown (Solid Navy -- flat) \
Inactive (Solid grey51 -- flat)
+ ButtonStyle 1 MiniIcon -- UseTitleStyle flat
+ ButtonStyle 2 Pixmap win95-close-full.xpm -- UseTitleStyle flat
+ ButtonStyle 4 Pixmap win95-maximize-full.xpm -- UseTitleStyle flat
+ ButtonStyle 6 Pixmap win95-minimize-full.xpm -- UseTitleStyle flat
+ BorderStyle Active -- HiddenHandles NoInset
+ BorderStyle Inactive -- HiddenHandles NoInset
+ WindowFont -adobe-helvetica-bold-r-*-120-*
+ HilightColor white grey60
DestroyFunc DecorWin95
AddToFunc DecorWin95
+ "I" RemoveAllButtons
+ "I" Style "*" UseDecor Win95, ForeColor Black
+ "I" Style "*" Button 1, Button 2, Button 4, Button 6
+ "I" MenuStyle Black grey75 grey40 -adobe-helvetica-medium-r-*-120-* mwm
+ "I" Mouse 0 1 N Menu Window-Ops Close
+ "I" Mouse 0 2 N Close
+ "I" Mouse 0 4 N Maximize
+ "I" Mouse 0 6 N Iconify
+ "I" Mouse 3 6 N Replace
AddToFunc DecorWin95
+ "I" Exec xsetroot -solid cyan4
+ "I" Recapture
#=========
# mwm
#=========
DestroyDecor Mwm
AddToDecor Mwm
+ TitleStyle Centered
+ TitleStyle ActiveUp (Solid cyan4 -- Raised) \
ActiveDown (Solid cyan4 -- flat) \
Inactive (Solid grey51 -- Raised)
+ ButtonStyle Reset
+ ButtonStyle All -- UseTitleStyle
+ ButtonStyle 2 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 4 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1
+ WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
+ HilightColor white cyan4
DestroyFunc DecorMwm
AddToFunc DecorMwm
+ "I" RemoveAllButtons
+ "I" Style "*" UseDecor Mwm, ForeColor Black
+ "I" Style "*" Button 1, Button 2, Button 4
+ "I" MenuStyle Black grey75 grey40 -adobe-helvetica-medium-r-*-120-* mwm
+ "I" Exec xsetroot -solid grey
+ "I" Recapture
+ "I" Mouse 0 1 N Menu Window-Ops Close
+ "I" Mouse 0 2 N Maximize
+ "I" Mouse 0 4 N Iconify
+ "I" Mouse 3 4 N Replace
DestroyMenu DecorMenu
AddToMenu DecorMenu
+ "Decors" Title
+ "MWM" DecorMwm
+ "Win95" DecorWin95
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Jan 20 1997 - 08:15:06 GMT