Re: FVWM: this morning's fvwmrc hack - menus matching key ops

From: Cameron Simpson <cs_at_zip.com.au>
Date: Mon, 12 Aug 2002 16:04:25 +1000

On 23:41 10 Aug 2002, Dominik Vogt <dominik.vogt_at_gmx.de> wrote:
| > Thus today's exercise. Two functions, KeyFn and MouseFn to set a key or
| > mouse mapping and also record it in a menu:
| >
| > # KeyFn menu desc keyname context mods "cmd-and-args"
| > DestroyFunc KeyFn
| > AddToFunc KeyFn "I" Key $2 $3 $4 $5
| > + "I" AddToMenu $0 "$1" $5
| >
| > # MouseFn menu desc button context mods "cmd-and-args"
| > DestroyFunc MouseFn
| > AddToFunc MouseFn "I" Mouse $2 $3 $4 $5
| > + "I" AddToMenu $0 "$1" $5
|
| Nice idea. Here's an enhancement that displays the key binding
| in the right column of the menu:
|
| + "I" AddToMenu $0 "$1<Tab>($4-$2)" $5
|
| Replace <Tab> with a real tab.

Heh. I was trying to find the right syntax for _exactly_ that
change. Applied. Thanks!
-- 
Cameron Simpson, DoD#743        cs_at_zip.com.au    http://www.zip.com.au/~cs/
Here's a great .sig I wrote, so good it doesn't rhyme.
	Jon Benger <jbenger_at_agravaine.st.nepean.uws.edu.au>
--
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 Mon Aug 12 2002 - 01:05:15 BST

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