ID:134062
 
I just started looking into .dmf files, and I was confused as to how I would go about setting up the menu.

I was looking for something that would produce a menu setup like so:

File
        Options and Messages... -> .options
        Quit -> .quit
Commands
        Something -> .blah
        Other
                Meh -> .foo
                Pfft -> .bar
        Misc
                Ping -> .ping
                Logout -> .logout


Following is a small snippet of what I tried to do to accomplish the above:
menu "menu"
elem
name = "&Options and Messages..."
command = ".options"
category = "&File"
elem
name = "&Misc"
category = "&Actions"
elem
name = "&Ping"
command = ".ping"
category = "&Misc"

In the above example, I tried to set the category of one element to the name of a previous element. Naturally, this just made a new category named "Misc."

Following that, I tried the DM-esque nesting method: indentation
menu "menu"
elem
name = "&Options and Messages..."
command = ".options"
category = "&File"
elem
name = "&Misc"
category = "&Actions"
elem
name = "&Ping"
command = ".ping"

This also didn't work. Is there some method of achieving this that I don't know about? If not, I would really appreciate the implementation of such functionality.

Hiead
Hiead wrote:
This also didn't work. Is there some method of achieving this that I don't know about? If not, I would really appreciate the implementation of such functionality.

I don't think there's a way, but it'd sure be nice! Maybe a couple of months or so down the road.