Subject: FVWM: title buttons relief settings

From: Yuri Arapov <[email-masked]>
Date: Tue, 12 Oct 2004 13:37:34 +0400

Hi list!

I'm wondering if there's a way to make the relief around pressed 
title button to be 1 pixel wide (now it's 2 pixels).

I've made simple vector buttons and I'd like to have some
visual feedback when button is pressed.  Here is how I do this:

<my-rc-file>

DestroyDecor DefaultDecor
AddToDecor   DefaultDecor
+ TitleStyle            RightJustified -- Flat
+ AddButtonStyle 1      AllUp    Vector 5 40x40@3 40x60@3 60x60@3 60x40@3 40x40@3
+ AddButtonStyle 6      AllUp    Vector 5 30x65@3 30x70@3 70x70@3 70x65@3 30x65@3
+ AddButtonStyle 4      AllUp    Vector 5 30x30@3 30x70@3 70x70@3 70x30@3 30x30@3
+ AddButtonStyle 2      AllUp    Vector 4 35x35@3 65x65@3 65x35@4 35x65@3
+ AddButtonStyle 1      AllDown  Vector 5 40x40@3 40x60@3 60x60@3 60x40@3 40x40@3
+ AddButtonStyle 6      AllDown  Vector 5 30x65@3 30x70@3 70x70@3 70x65@3 30x65@3
+ AddButtonStyle 4      AllDown  Vector 5 30x30@3 30x70@3 70x70@3 70x30@3 30x30@3
+ AddButtonStyle 2      AllDown  Vector 4 35x35@3 65x65@3 65x35@4 35x65@3
+ ButtonStyle 1         - MwmDecorMenu
+ ButtonStyle 6         - MwmDecorMin
+ ButtonStyle 4         - MwmDecorMax
+ ButtonStyle           All -- Flat
+ ButtonStyle           All ActiveDown -- Raised
+ ButtonStyle           All InactiveDown -- Raised

</my-rc-file>

The two last lines do the job.  Everything works just fine 
except the relief (3D border) of pressed button is 2 pixels 
wide.

I've searched the man pages but did not find any solution (though 
I probably searched it badly?).

And another thing.  The title button stays in pressed state even
if mouse is not over it.  And corrresponding action happens when
one releases mouse button anywhere on the screen.  Is there a way
to (a) make title button to be in pressed state if mouse is over it
only, and (b) invoke button-related action if mouse is released
over button?

Thank you,

Yuri

-- 
Yuri Arapov <[email-masked]>
--
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-masked].
To report problems, send mail to [email-masked].