[comp.windows.x.motif] How can I define submenus in .mwmrc ?

SYSTMLX@cc1.kuleuven.ac.be (Marijke Lacroix) (07/26/90)

I would like to define a second Rootmenu with some cascading submenus.
Is it possible to do that by changing my own configurationfile .mwmrc ?


Marijke

yee@osf.org (Michael K. Yee) (07/29/90)

In article <90207.134133SYSTMLX@cc1.kuleuven.ac.be> SYSTMLX@cc1.kuleuven.ac.be (Marijke Lacroix) writes:
>
>
>   I would like to define a second Rootmenu with some cascading submenus.
>   Is it possible to do that by changing my own configurationfile .mwmrc ?
>
>
>   Marijke
>
	Yes, try the following in your .mwmrc file.  MyDefaultMenu is the
	main root menu, and "Programs" is a cascading menu to the menu
	defined in MyPrograms.  BTW: If you want multiple root menus just
	define button bindings for each button (1,2,3,etc) for the root
	(window) context, but you already knew that...

	=Mike


Menu MyDefaultMenu
{
    @motif16.xbm	f.title
#    "Root Menu"		f.title
    "New Window"	f.exec "xterm &"
    "Calendar"		f.exec "dxcalendar &"
    "Xcalc"		f.exec "xcalc &"
    "Xmag"		f.exec "xmag &"
    "Xcmap"		f.exec "xcmap &"
    "Programs"          f.menu  MyPrograms
    "Refresh"		f.refresh
    no-label		f.separator
    "Restart"		f.restart
    "Quit Mwm"		f.quit_mwm
}

Menu MyPrograms
{
    "Xload"         f.exec "nice xload -bd red &"
    "ColorDemo"		f.exec "colordemo &"
    "Idraw"		f.exec "idraw &"
    no-label		f.separator
    "Dragon"		f.exec "dragon &"
    "Xmahjongg"		f.exec "xmahjongg &"
    "Xmandel"		f.exec "xmandel &"
    "Xrobots"		f.exec "xrobots &"
    "Idraw"		f.exec "idraw &"
    no-label		f.separator
    "Spaceout"		f.exec "nice spaceout &"
}
--
= Michael K. Yee =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
= OPEN Software Foundation -- 11 Cambridge Center -- Cambridge, MA 02142
= Phone: 617-621-8831      Email: yee@osf.org, uunet!osf.org!yee
= "I can't give you brains, but I can give you a diploma." -- The Wizard of OZ