Re: FVWM: MoveToPage and tabular menu

From: Phil Stracchino <alaric_at_caerllewys.net>
Date: Thu, 13 May 2004 17:14:00 -0400

On Thu, May 13, 2004 at 08:10:45PM +0100, Ukpong Ukpong wrote:
> Just wondering how do you invoke it, been tryiing to figure it but getting
> not where !!


Oh, sorry.

I invoke it from my WindowOps menu at present:

AddToMenu Window-Ops "Window Ops" Title
...
+ "(Un)Maximize" Maximize
+ "" Nop
+ "Send to &Page..." SendWindowTopage
+ "Delete" Delete
...


I'm thinking of also assigning it to button 8, but haven't designed a
suitable vector button yet. (Though I have ideas.)



>
>
> >
> > 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 Thu May 13 2004 - 16:16:46 BST

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