FVWM: title buttons relief settings

From: Yuri Arapov <yuri.arapov_at_sctest.vrn.ru>
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_at_3 40x60_at_3 60x60_at_3 60x40_at_3 40x40_at_3
+ AddButtonStyle 6 AllUp Vector 5 30x65_at_3 30x70_at_3 70x70_at_3 70x65_at_3 30x65_at_3
+ AddButtonStyle 4 AllUp Vector 5 30x30_at_3 30x70_at_3 70x70_at_3 70x30_at_3 30x30_at_3
+ AddButtonStyle 2 AllUp Vector 4 35x35_at_3 65x65_at_3 65x35_at_4 35x65_at_3
+ AddButtonStyle 1 AllDown Vector 5 40x40_at_3 40x60_at_3 60x60_at_3 60x40_at_3 40x40_at_3
+ AddButtonStyle 6 AllDown Vector 5 30x65_at_3 30x70_at_3 70x70_at_3 70x65_at_3 30x65_at_3
+ AddButtonStyle 4 AllDown Vector 5 30x30_at_3 30x70_at_3 70x70_at_3 70x30_at_3 30x30_at_3
+ AddButtonStyle 2 AllDown Vector 4 35x35_at_3 65x65_at_3 65x35_at_4 35x65_at_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 <yuri.arapov_at_sctest.vrn.ru>
--
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 Tue Oct 12 2004 - 04:39:12 BST

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