Re: FVWM: [Toggled]ActiveUp/Down button styles

From: Dominik Vogt <dominik.vogt_at_fvwm.org>
Date: Thu, 27 Jan 2000 17:33:07 +0100

On Thu, Jan 27, 2000 at 04:13:54PM +0000, neil.bird_at_rdel.co.uk wrote:
>
> OK, having re-read the manual page, and scanned through border.c, I
> finally think I understand how these states should work, and I think they
> should do what I want. However, they don't (!).
>
> What I *want* is for my maximise button to have a standard tiled pixmap,
> with another pixmap on top, this top pixmap to change dependant upon the
> maximised status of the window. Gottit?
>
> Here's what I use:

It will work perfectly if you remove the syntax errors. Looking
at the console output when trying such commands might help too ;-)


> AddToDecor StandardDecor ButtonStyle All -- UseTitleStyle Raised
> ...
> AddToDecor StandardDecor AddButtonStyle 2 - MWMDecorMax \
                                              ^^^^^^^^^^^^^

'-' options belong at the end of the AddButtonStyle command

> ActiveUp ( \
> Pixmap FNX-window-maximise-on.xpm) \
> ActiveDown ( \
> Solid White)
                          ^^^

The backslash is missing.

> ToggledActiveUp ( \
> Pixmap FNX-window-maximise-off.xpm) \
> ToggledActiveDown ( \
> Solid White)

The right command is:

  AddButtonStyle 2 ActiveUp (Pixmap FNX-window-maximise-on.xpm) \
                   ActiveDown (Solid White) \
                   ToggledActiveUp (Pixmap FNX-window-maximise-off.xpm) \
                   ToggledActiveDown (Solid White) \
                 - MWMDecorMax

Bye

Dominik ^_^

> I'm suspecting at this point that it *isn't* working right, but I'd like
> some confirmation: is anyone else actually *using* this style?

:-) My recommendation: don't use it. All this ...Style stuff will be
rewritten for 3.0 anyway :-)

-- 
Dominik Vogt, Agilent Technologies, Dept. BVS
Herrenberger Str.130, 71034 Boeblingen, Germany
phone: 07031/464-4596, fax: 07031/464-3883, dominik_vogt_at_agilent.com
--
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 Thu Jan 27 2000 - 10:33:56 GMT

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