Jim Nicholson wrote:
> Douglas Straub writes:
> > Hi,
> > I was looking through the code for the module FvwmTaskBar, and I see that the menu for
> > the taskbar is created in the .fvwm2rc file, and is activated by the module sending a message
> > to fvwm. I was wondering if menus could be made to be dynamic? ...
> Your friends are AddToMenu, DestroyMenu, and Read.
> But, of course, your best friend is "man fvwm2".
> Your best friend wishes you would look him up.
> ;)
Hmm. Not quite, if he's after what I tried to do. I wanted to emulate
olvwm's DIRLIST submenu option, which hangs a submenu off an entry that's
created on the fly (in this case, the contents of a directory).
Now, I've done something /similar/ by writing a script DirMenu that
recreates a menu '_DirMenu' & 'Popup's it when it's called, which is with
something like:
+ "List Dir" Read 'DirMenu /some/where'
Although this works, 'List Dir' is a terminating menu entry (i.e., no
submenu) - I have to actually select it, lose the current menu-tree, then
have the _DirMenu popup.
What I think Mr. Straub was after was what I was trying for: a /dynamic/
submenu. I couldn't see a way to implement this (from 'man fvwm2'), but
may have missed somthing.
And if that's /not/ what he was on about, then sorry for hijacking the
thread!
--
========================- http://www.rrds.co.uk/ -======================
Neil Bird | This is who we are The time is near
| There are 345 days remaining
mailto:neil.bird_at_rrds.co.uk | [ T-138 days! ]
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Jan 21 1999 - 02:50:54 GMT