Re: FVWM: Re: Maximize/Restore buttons

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Fri, 16 Jul 2004 17:35:04 +0000

On 16 Jul 2004 09:43:00 -0300, romildo_at_uber.com.br wrote:
>
> Up to now I have:
[sample from original message]
>
> ButtonStyle 4 -- flat
> AddButtonStyle 4 \
> Active (HGradient 128 Azure2 Azure1 -- flat) \
> Active (7 20x20_at_0 90x20_at_0 90x25_at_0 20x25_at_0 20x80_at_0 90x80_at_0 90x20_at_0) \
> ActiveDown (-- raised) \
> Inactive (HGradient 64 Grey80 Grey90 -- flat) \
> Inactive (7 20x20_at_0 90x20_at_0 90x25_at_0 20x25_at_0 20x80_at_0 90x80_at_0 90x20_at_0) \
> InactiveDown (-- raised)

This is incorrect, You can't use two Active (and Inactive) definitions
in one [Add]ButtonStyle command, only one definition will be used.
Here is the correct syntax (the same thing, just rearranged):

ButtonStyle 4 -- flat
ButtonStyle 4 \
  Active (HGradient 128 Azure2 Azure1 -- flat) \
  Inactive (HGradient 64 Grey80 Grey90 -- flat)
AddButtonStyle 4 \
  Active (7 20x20_at_0 90x20_at_0 90x25_at_0 20x25_at_0 20x80_at_0 90x80_at_0 90x20_at_0) \
  ActiveDown (-- raised) \
  Inactive (7 20x20_at_0 90x20_at_0 90x25_at_0 20x25_at_0 20x80_at_0 90x80_at_0 90x20_at_0) \
  InactiveDown (-- raised)

Similarly with your last sample:

> Colorset 8 HGradient 64 Azure2 Azure1
> ButtonStyle All - Clear
> ButtonStyle 4 - MwmDecorMax
> AddButtonStyle 4 \
> AllActive (Colorset 8) \
> AllInactive (HGradient 64 Grey80 Grey90) \
> AllNormal (7 20x20_at_0 90x20_at_0 90x25_at_0 20x25_at_0 20x80_at_0 90x80_at_0 90x20_at_0) \
> AllToggled (12 40x60_at_1 20x60_at_1 20x20_at_1 60x20_at_1 60x40_at_1 \
> 40x40_at_4 80x40_at_1 80x80_at_1 40x80_at_1 40x40_at_1 40x45_at_1 80x45_at_1)

AllActive and AllInactive are an alternative cut of All than AllNormal
and AllToggled, so you can't use all of them in one [Add]ButtonStyle.
Here is the correct syntax (the same thing, just rearranged):

ButtonStyle 4 \
  AllActive (Colorset 8) \
  AllInactive (HGradient 64 Grey80 Grey90)
AddButtonStyle 4 \
  AllNormal (7 20x20_at_0 90x20_at_0 90x25_at_0 20x25_at_0 20x80_at_0 90x80_at_0 90x20_at_0) \
  AllToggled (12 40x60_at_1 20x60_at_1 20x20_at_1 60x20_at_1 60x40_at_1 \
                 40x40_at_4 80x40_at_1 80x80_at_1 40x80_at_1 40x40_at_1 40x45_at_1 80x45_at_1)

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jul 16 2004 - 12:37:49 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST