henk1955
Group: Members
Posts: 249
Joined: June 2004 |
|
Posted: Jan. 14 2005,20:26 |
|
i think you dont have to put the submenus in a subsection! you CAN make it i ONE just like in fluxbox. i you read the example i gave you will see the subsection of "programs" in inside the main menu.Code Sample | -- Main menu defmenu("mainmenu", { submenu("Programs",{ menuentry("XTerm", make_exec_fn("xterm")), menuentry("emelFM", make_exec_fn("emelfm")), menuentry("Xmms", make_exec_fn("xmms")), menuentry("Dillo", make_exec_fn("dillo")), menuentry("Xzgv", make_exec_fn("xzgv")), -- The query module must also be loaded for this binding to work. menuentry("Run...", querylib.query_exec), }), -- menuentry("Lock screen", make_exec_fn("xlock")), menuentry("Help", querylib.query_man), menuentry("About Ion", querylib.show_aboutmsg), submenu("Styles", "stylemenu"), submenu("Exit", { --menuentry("Restart", querylib.query_restart), menuentry("Restart", restart_wm), menuentry("Restart Fluxbox", function() restart_other_wm("fluxbox") end), --menuentry("Exit", querylib.query_exit), menuentry("Exit", exit_wm), }), })
|
This i a hole, valid, complete, ion menu. i has submenus and is not using subsections
-------------- You have a Q or just want to chat? Come to #damnsmalllinux on irc.freenode.net! Open 24/7
dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl) ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
|