On Thu, Jul 15, 2004 at 04:27:38PM -0300, [EMAIL PROTECTED] wrote:
> 
> I want to set up one of two different images on button 4
> in the title bar, depending on the maximization state
> of the window. This button is to be used as a toggle of
> the mazimation state of window (maximize/restore).
> How can I configure that?

Below is an excerpt from my configuration file where
I try to set the maximize/restore buttons as
described above.

But it is not working: the vector image of the restore
button (the toggled button 4, when the window is
maximized) is not being drawn. Any help? I am running
FVWM 2.5.10 on Gentoo Linux.

#-----------------------------------------------------------------
Style * MWMFunctions
Style * MWMDecor
Style * MWMBorder
Style * MWMButtons

ButtonStyle All - Clear
ButtonStyle 1 - MwmDecorMenu
ButtonStyle 4 - MwmDecorMax
ButtonStyle 6 - MwmDecorMin

# Button 1: window operations
AddButtonStyle 1 \
  Active (HGradient 64 Azure1 Azure3) \
  Inactive (HGradient 64 Gray90 Gray60) \
  MiniIcon

# Button 2: delete
AddButtonStyle 2 \
  Active (HGradient 64 Azure1 White) \
  Inactive (HGradient 64 Grey90 Grey100) \
  (13 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED])

#Button 4: Maximize
AddButtonStyle 4 \
  AllActive (HGradient 128 Azure2 Azure1) \
  AllInactive (HGradient 64 Grey80 Grey90) \
  AllNormal (7 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]) \
  AllToggled (10 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED])

# Button 6: Minimize (image of large window being shrunk down)
AddButtonStyle 6 \
  Active (HGradient 128 LightSteelBlue Azure2) \
  Inactive (HGradient 64 Grey70 Grey80) \
  (4 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED])

AddButtonStyle All AllUp (-- flat)
AddButtonStyle All AllDown (-- raised)


Mouse 1         4       A       Maximize layer grow grow
#-----------------------------------------------------------------


--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to