Re: FVWM: Learning more about button styles

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 9 Mar 2003 23:36:19 +0000

On 09 Mar 2003 17:27:12 -0500, Norman Walsh wrote:
>
> I was inspired recently to try to make my desktop a little more attractive.
> To that end, I've been fiddling with button styles.
>
> I have close bound to button 2 and maximize to button 4:
>
> ButtonStyle 2 ActiveUp (Pixmap close_activeup.xpm) \
> ActiveDown (Pixmap close_activedown.xpm) \
> Inactive (Pixmap close_inactive.xpm)
>
> ButtonStyle 4 ActiveUp (Pixmap maximize_activeup.xpm) \
> ActiveDown (Pixmap maximize_activedown.xpm) \
> Inactive (Pixmap maximize_inactive.xpm) \
> ToggledActiveUp (Pixmap restore_activeup.xpm)
>
> I expected the "restore" pixmap to be used on the maximized window and
> the normal buttons on the "normal" window.
>
> But what actually happens when I maximize a window is that I get the
> same button 4 that I get in the normal window

You need to reconfigure "maximize" from button 2 (default) to 4:

  ButtonStyle 2 -
  ButtonStyle 4 - MWMDecorMax
  Style "*" MWMButtons

> and button 2 becomes one
> of the default square buttons, not my pixmap.

>From this I assume you already have Style "*" MWMButtons needed to use
Toggled states.

> This is under 2.5.6 that I built yesterday.

Another way to solve your button 2 problem (the default square when
maximized) is to use AllActiveUp, AllActiveDown and AllInactive states
instead of the configuration above, or to explicitely add Toggled states.

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 Sun Mar 09 2003 - 17:38:04 GMT

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