Re: FVWM: MoveToPage and tabular menu

From: Phil Stracchino <alaric_at_caerllewys.net>
Date: Wed, 12 May 2004 23:48:59 -0400

On Wed, May 12, 2004 at 10:39:00PM -0400, Phil Stracchino wrote:
> On Thu, May 13, 2004 at 12:22:32AM +0000, Mikhael Goikhman wrote:
> > On 12 May 2004 19:59:49 -0400, Phil Stracchino wrote:
> > > Is there such a variable, and if so, what is it? Where can I find
> > > documentation of all the available variables?
> >
> > In the man page. You may easily consider any feature not found in the man
> > pages unexisting.
>
> And that is indeed where I found it, once I first found the outdated
> manpage that was getting picked up ahead of it and removed it.
>
> Incidentally, you get some really odd visual effects if you start
> fvwm-2.5.10 with the ModulePath still pointing to fvwm-2.4.16....
> (color me sheepish)


Oh, at any rate, here's my final code, for anyone else's reference who
might care to use it:

DestroyFunc .
AddToFunc .
+ I SendToModule FvwmPerl preprocess -c -- $*

DestroyFunc SendWindowToPage
AddToFunc SendWindowToPage
+ I SetEnv LAST_WIN_ID $[w.id]
+ I . FvwmButtons -g 144x96+%{$[pointer.x]-$[page.nx]*36-34}%+%{$[pointer.y]-$[page.ny]*24-20}% -transient GridButtons

DestroyFunc MoveLastWindowToPage
AddToFunc MoveLastWindowToPage
+ I WindowId $[LAST_WIN_ID] MoveToPage $0 $1

DestroyModuleConfig GridButtons
#*GridButtons: geometry 144x96
*GridButtons: columns 4
*GridButtons: rows 4
*GridButtons: (Title "0", Action "MoveLastWindowToPage 0 0")
*GridButtons: (Title "1", Action "MoveLastWindowToPage 1 0")
*GridButtons: (Title "2", Action "MoveLastWindowToPage 2 0")
*GridButtons: (Title "3", Action "MoveLastWindowToPage 3 0")
*GridButtons: (Title "4", Action "MoveLastWindowToPage 0 1")
....
*GridButtons: (Title "15", Action "MoveLastWindowToPage 3 3")


This creates a 4x4 button panel, essentially the same size as my pager,
which pops up under the mouse pointer with the button representing the
current page under the pointer, thus making all the adjacent pages the
shortest mouse movement away.



-- 
 .*********  Fight Back!  It may not be just YOUR life at risk.  *********.
 : phil stracchino : unix ronin : renaissance man : mystic zen biker geek :
 :  alaric_at_caerllewys.net|phil-stracchino_at_earthlink.net|phil_at_novylen.net  :
 :   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)   :
 :    Linux Now!   ...Because friends don't let friends use Microsoft.    :
--
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 Wed May 12 2004 - 22:51:46 BST

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