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> 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. I was
> wondering if menus could be made to be dynamic? 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> </DIV>
> <DIV><FONT color=#000000 size=2>Popup foo {</FONT></DIV>
> <DIV><FONT color=#000000 size=2>
> "bar" Exec nop</FONT></DIV>
> <DIV><FONT size=2>}</FONT></DIV>
> <DIV><FONT color=#000000 size=2></FONT> </DIV>
> <DIV><FONT color=#000000 size=2>Could I have a module "Read" 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>
> "fum" Exec ls</FONT></DIV>
> <DIV><FONT size=2>}</FONT></DIV>
> <DIV>Or must I always restart fvwm2?
> 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