On 10 Apr 2003 16:21:25 +0300, Simas Cepaitis wrote:
> 
> Hello,
Laba diena.
>   I'm trying to do dynamic popup menus, dependent on the desktop 
> number I'm on. It looks something like
> 
> Key F10  A  A  DynMenu
> 
> AddToFunc DynMenu
> + I Popup My$$d
> 
> So, I have 10 desktops and My0,My1 etc. Thing is, that I have 
> "normal" popup menus, say, named remote-logins, which is the same 
> as My4. Can I do 'alias' or something like this, not to duplicate 
> my menu entries and also not to use mystic MySomeNumber name in 
> RootMenu and elsewhere? I'm using fvwm 2.5.5 .
Unfortunately, it is currently impossible to alias menus.
But you may do the following to avoid duplication:
  AddToFunc CreateRemoteShellsMenu
  + I DestroyMenu $0
  + I AddToMenu   $0
  + I + "_at_menu/terminal-remote.xpm_at_rytas" Exec ssh ...
  + I + "_at_menu/terminal-remote.xpm_at_vakaras" Exec telnet ...
  + I + ...
  CreateRemoteShellsMenu RemoteShells
  CreateRemoteShellsMenu My3
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Apr 11 2003 - 05:10:07 BST