FVWM: Can popup menus be dynamic without restarting fvwm?

From: Jim Nicholson <jim_at_osiris.kosmic.org>
Date: Wed, 20 Jan 1999 20:43:55 -0500 (EST)

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.

;)

- Jim

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? For example, suppose I had
> a Popup defined in my .fvwm2rc as:
>
> Popup foo {
> "bar" Exec nop
> }
>
> Could I have a module "Read" a file that would redefine the foo Popup such that the
> entries and the actions change such as:
> Popup foo {
> "fum" Exec ls
> }
> Or must I always restart fvwm2? Thanks.
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
> <HTML>
> <HEAD>
>
> <META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
> <META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT color=#000000 size=2>Hi, </FONT></DIV>
> <DIV><FONT color=#000000 size=2>&nbsp;&nbsp;&nbsp; I was looking through the
> code for the module FvwmTaskBar, and I see that the menu for</FONT></DIV>
> <DIV><FONT color=#000000 size=2>the taskbar is created in the .fvwm2rc file, and
> is activated by the module sending a message</FONT></DIV>
> <DIV><FONT color=#000000 size=2></FONT><FONT size=2>to fvwm.&nbsp; I was
> wondering if menus could be made to be dynamic?&nbsp; For example, suppose I
> had</FONT></DIV>
> <DIV><FONT size=2>a Popup defined in my .fvwm2rc </FONT><FONT
> size=2>as:</FONT></DIV>
> <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
> <DIV><FONT color=#000000 size=2>Popup foo {</FONT></DIV>
> <DIV><FONT color=#000000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &quot;bar&quot; Exec nop</FONT></DIV>
> <DIV><FONT size=2>}</FONT></DIV>
> <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
> <DIV><FONT color=#000000 size=2>Could I have a module &quot;Read&quot; a file
> that would redefine the foo Popup such that the</FONT></DIV>
> <DIV><FONT color=#000000 size=2></FONT><FONT size=2>entries and the actions
> change such as:</FONT></DIV>
> <DIV><FONT color=#000000 size=2>
> <DIV><FONT color=#000000 size=2>Popup foo {</FONT></DIV>
> <DIV><FONT color=#000000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &quot;fum&quot; Exec ls</FONT></DIV>
> <DIV><FONT size=2>}</FONT></DIV>
> <DIV>Or must I always restart fvwm2?&nbsp;
> Thanks.</DIV></FONT></DIV></BODY></HTML>
--
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 Wed Jan 20 1999 - 19:46:11 GMT

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