Re: FVWM: Command to send arbitrary stuff to modules

From: Charles Hines <>
Date: Mon, 25 Mar 1996 14:50:04 -0500

>>>>> "Brandon" == Brandon M Browning <brandon_at_powertie.org> writes:

Brandon> Not to compare apples to oranges, but OLWM lets me change
Brandon> menu items w/o restarting.

Actually, you can pretty much do this right now (although it may not
be an entirely elegant solution).

To add to an existing menu on the fly, you can just call AddToMenu.
To recreate it you can call DestroyMenu, and then AddToMenu.

So, if you rewrote your .fvwm2rc file correctly (or safer, had a
separate file just for menu definitions), you could just reread it.

In fact, check out this. In your ~/.fvwm2rc file you could have:

----------------------------------------------------------------------
Mouse 2 R MC DynamicMenu

AddToMenu DMenu "Dynamic Menu" Title

AddToFunc DynamicMenu "I" DestroyMenu "DMenu"
+ "I" Read .fvwm2rc-dynmenu
+ "I" Popup DMenu
----------------------------------------------------------------------

And ~/.fvwm2rc-dynmenu could look like this:

----------------------------------------------------------------------
AddToMenu DMenu "Dynamic Menu" Title
+ "Rlogin" Module FvwmForm Rlogin
+ "QuitVerify" Module FvwmForm QuitVerify
----------------------------------------------------------------------

This binds Alt-Ctrl-MiddleMouse to this dynamic menu function.
Editing the file .fvwm2rc-dynmenu would result in an immediate change
when you pop up the menu next time with no fvwm commands needed on
your part.

Granted, if you haven't changed that file, it still does waste the
time of reading the file before popping up the menu, but with a not so
large menu this won't be too bad. But if you used it to get the menu
to where you liked it and then just bound the resulting menu directly
instead of through this function, it wouldn't matter anyways.

Chuck

*******************************************************************************
Charles K. Hines <chuck_hines_at_vnet.ibm.com>
IBM Logic Synthesis developer [BooleDozer (TM)]
Martial Arts Instructor [Modern Arnis, Presas Style Filipino Martial Arts]

IBM Internal email: "Go back to sleep, Chuck. You're
  hines_at_cold.fishkill.ibm.com, just havin' a nightmare--of course,
  HINESC at FISHKILL, HINESC at FSHVMFK1 we are still in Hell." Gary Larson
*******************************************************************************
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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 Mon Mar 25 1996 - 13:50:26 GMT

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