if you don't mind using FvwmM4 or FvwmCpp you can make a definition for
the Button Styles, or make a separate file and m4_include() or #include
it. here's what i do (extraneous stuff removed for clarity):
# define a Maximize button:
m4_define(<%_BUTTON_MAX_%>, <%2%>)m4_dnl
m4_define(<%_DefaultButtonMax_%>, <%m4_dnl
_ButtonStyle(_BUTTON_MAX_, <%5 75x25_at_1 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0%>)m4_dnl
%>)m4_dnl
# make it part of the `Default' decor:
_DefaultButtonMax_
#
# ...
#
# now make it part of another decor also:
AddToDecor Smooth
+ _DefaultButtonMax_
note that the above uses "FvwmM4 .fvwmrc -m4-prefix".
--jim
############## jim knoble ###### jmknoble_at_pobox.com ################
On Fri, 28 Mar 1997, Randy J. Ray wrote:
: Previously, I defined multiple decors for the sake of title styles and color
: specifications. In each of the decors, I had the same 5 AddButtonStyle
: statements. Only, there were two problems: If I changed a style and re-started,
: it overlaid on the current style, so I wanted ButtonStyle instead of
: AddButtonStyle. And (2), These 5 styles were redundantly defined, and changing
: one meant changing it in several places.
:
: So I added the following:
:
: ButtonStyle 1 5 25x61_at_0 75x61_at_0 75x39_at_0 25x39_at_1 25x61_at_1
: ButtonStyle 2 4 50x35_at_1 65x65_at_0 35x65_at_0 50x35_at_1
: ButtonStyle 3 13 90x10_at_1 40x10_at_1 40x40_at_1 40x60_at_1 60x60_at_0 [ ... ]
: ButtonStyle 4 4 50x65_at_1 35x35_at_1 65x35_at_1 50x65_at_0
: ButtonStyle 5 20 50x35_at_0 40x25_at_0 50x15_at_0 60x25_at_1 50x35_at_1 [ ... ]
:
: outside of a Decor definition, expecting it to apply universally. But it
: doesn't, I get default visual styles for all the buttons. I've tried several
: variations (using the Vector keyword, using "--" to mean all states, etc.),
: but none work. For now, I'll have to put them back in the Decor definitions,
: but what am I doing wrong?
:
: Randy
--
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 Fri Mar 28 1997 - 13:54:51 GMT