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:
AddToDecor StandardDecor ButtonStyle All -- UseTitleStyle Raised
...
AddToDecor StandardDecor AddButtonStyle 2 - MWMDecorMax \
ActiveUp ( \
Pixmap FNX-window-maximise-on.xpm) \
ActiveDown ( \
Solid White)
ToggledActiveUp ( \
Pixmap FNX-window-maximise-off.xpm) \
ToggledActiveDown ( \
Solid White)
AFAIUI, this should:
- set the MWM flag stating that it's a maximise button (which I think it
does)
- set solid white for the button-depressed state whether toggled max. or
not (it only does this for !max - when maximised, holding clicker-1 down
doesn't make it go white)
- set the "on" pixmap whem !max, and set the "off" when max. (I actually
get the default MWM 'square' vector, not my pixmap. Mind you, it *does*
toggle correctly when max/!max).
What I've missed out is the generic non-active pixmap. If I add that as
a default, I lose the default square & only have *it*, not the ones I've
specified (which, as I've said, seem to not work anyway).
Thinking about it now, though: "ToggledActiveUp" ... surely that implies
it'll only display diff. toggled statuses when the window's active!?
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??
--
=====================- http://www.racaldefence.com/ -===================
Neil Bird |
| This .signature is
mailto:neil.bird_at_rdel.co.uk | certified Y2K compliant
--
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:14:38 GMT