Configuring Motif Menu

Hello,
I'm trying to configure my system menu to include some custom options and need to make the menu appear a certain way. I'm not sure I have all the syntax correct at this point and have not found any examples that apply to my specific setup. Here is an example of my window menu entry in my .mwmrc file:

Menu DefaultWindowMenu
{
"Restore" _R AltR f.restore
"Move" _M AltF7 f.move
"Size" _S AltF8 f.resize
"Occupy Workspace..." f.send_msg 10,
"Close" _C AltF4 f.close
"ENTER" f.send_msg 11,
}

In addition, I need to disable certain menu options on the fly.

Does anyone know how to:

1) Add custom options, such as "Occupy Workspace..." or "ENTER" that work without an accelerator key being spcified or with custom text showing up, such as the word "Return"?

2) Change the appearance of the function key hint in the menu from "F" to "Alt+F"? That is, I want to replace the "<>" symbols with the "+" symbol.

3) I need the menu to ultimately show up like the following:

Restore Alt+F5
Move Alt+F7
Size Alt+F8
Occupy Workspace...
Close Alt+F4
ENTER Return

By the way, are tab characters needed to separate the various fields in .mwmrc like they are in makefiles?

In composing this post, I could not get extra spaces (item 3 above) between, for example, "Restore" and "Alt+F5" so that the result looks like the way I want it.

Thanks in advance for help anyone can provide.

jm22033 at yahoo dot com


Andriy Konoval

Andriy Konoval's picture

DefaultWindowMenu

As for the first question:
If you take out coma after f.send_msg 10 and f.send_msg 11 it should work.
As for next two questions:
For right now I can't say either it possible at all.