Re: FVWM: Window menu entries depending on window state

From: Marcus Lundblad <ml_at_Update.UU.SE>
Date: Tue, 20 Jul 2004 17:33:06 +0200 (CEST)

> > DestroyFunc WindowMenuF
> > AddToFunc WindowMenuF
> > + I DestroyMenu recreate WindowMenu
> > + I AddToMenu WindowMenu "Window" Title
> > + I + "&Move" Move
> > + I + "&Resize" Resize
> > + I + "R&aise" Raise
> > + I + "&Lower" Lower
>
> > + I Current (Iconic) + "De&iconify" Iconify
> > + I Current (!Iconic) + "&Iconify" Iconify
> > + I Current (Sticky) + "Un&stick" Stick
> > + I Current (!Sticky) + "&Stick" Stick
> > + I Current (Shaded) + "Un&shade" WindowShade
> > + I Current (!Shaded) + "&Shade" WindowShade
> > + I Current (Maximized) + "Unma&ximize" Maximize layer grow grow
> > + I Current (!Maximized) + "Ma&ximize" Maximize layer grow grow
> > + I Current (!Maximized) + "Maximize &Vertical" Maximize layer 0 grow
> > + I Current (!Maximized) + "Maximize &Horizontal" Maximize layer grow 0
> ^^^^^^^^^
>
> + I ThisWindow ...
>
> > + I + "" Nop
> > + I + "Move to &Desk" Popup MoveToDeskMenu
> > + I + "Title Position" PopUp TitlePosMenu
> > + I + "" Nop
> > + I + "Identify" Module FvwmIdent
> > + I + "ScrollBar" Module FvwmScroll 2 2
> > + I + "Print" PrintFunction
> > + I + "Print Reverse" PrintReverseFunction
> > + I + "" Nop
> > + I + "&Delete" Delete
> > + I + "&Close" Close
> > + I + "Destroy" Destroy
> >
> > # This one works
> > Mouse 1 1 A Menu WindowMenu Nop
> >
> > # This one does not work for some entries
> > *FvwmIconMan: Action Mouse 3 N \
> > sendcommand 'Menu WindowMenu Rectangle +$[left]+$[top] 0 -100m'
>

Actually, I was thinking about implementing some way of embedding
conditions into menu commands.
I think it was up for discussion a while ago. But I'm not quite clear
about exactly how it should work, and I guess it's quite a big thing, so
it would probably need some discussions on how to (and if) to implement
it.

And right now I've been quite busy with other things and haven't had too
much time for FVWM lately.
I still have some work to do to clean up all the places where modules try
to see how much of a string fits within a certain amount of pixels by
iterating 1 byte at a time (not working on multi-byte locales)

//Marcus


> Ciao
>
> Dominik ^_^ ^_^
>
> --
> Dominik Vogt, dominik.vogt_at_gmx.de
> Reply-To: dominik.vogt_at_gmx.de
>
--
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 Jul 20 2004 - 10:38:13 BST

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