Re: FVWM: Can popup menus be dynamic without restarting fvwm?

From: Michael Han <mikehan_at_best.com>
Date: Thu, 21 Jan 1999 09:55:05 -0800

Previously...
> 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!

Hrmm, your description seems pretty accurate, regardless of whether
the original questioner was asking this in specific or not... I've
bumped into the same thing, writing silly little hacks in fvwmperl. I
really overload my fvwm menus. Given that Functions and Menus are
stored identically in fvwm2, it now occurs to me that there might be a
way to sneak functions into a menu invocation somehow.

Anyhow, I usually do this when I want to do a dynamic menu:

AddToFunc DynamicMenuFunctionFoo I PipeRead foo

Where foo is responsible for returning a DestroyMenu, AddToMenu, PopUp
stream. Then I can do a:

AddToMenu DynamicMenuParent "a dynamic menu" DynamicMenuFunctionFoo

I think I see a way to maybe do this and keep the dynamic menu as part
of the menu tree...
-- 
mikehan_at_best.com
It's potato, not potatoe
 - The collected wisdom of Bart Simpson
--
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 - 11:56:24 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST