All:

I'm using FVWM v2.5.23.

Is there a way to have FvwmButtons PopUp a dynamically generated menu?

The (hopefully) relevant info follows...

DestroyMenu "RootMenu"
AddToMenu "RootMenu" $[HOST] Title
+ MissingSubmenuFunction FuncFvwmMenuDirectory
+ "" Nop
+ "Shells %mini.fvwm.xpm%" Popup "$[FVWM_USERDIR]/menus/Shells"

...and the function...

DestroyFunc "FuncFvwmMenuDirectory"
AddToFunc "FuncFvwmMenuDirectory"
  + I PipeRead '$[FVWM_USERDIR]/conf.d/fvwm2rc.make.menu "$0"'

fvwm2rc.make.menu is a Perl script I wrote to generate a menu when you
pass a directory to it.

My problem is that the menu "$[FVWM_USERDIR]/menus/Shells" doesn't exist
until I open the RootMenu.  FVWM dynamically generates the
"$[FVWM_USERDIR]/menus/Shells" menu with MissingSubmenuFunction.

Is there anything similar that I can do with FvwmButtons (maybe we a
Function of some sort)?  I only want this particular menu displayed when
I click on the button defined below:

*FvwmButtonsTopBar: (1x1, Title '$[HOST]', Action 'Popup \
 "$[FVWM_USERDIR]/menus/Shells"')

Thanks in advance.
--


Reply via email to