User Feedback :: A TWM for Open DSL



Quote (henk1955 @ Jan. 14 2005,15:26)
Code Sample

-- Main menu
defmenu("mainmenu", {
   submenu("Programs",{
     menuentry("XTerm", make_exec_fn("xterm")),

Holy moley!
I didn't notice how you had used the '{' in the submenu line...I guess that pretty much defines the submenu in the same manner that Flubox does.

I'm getting excited now....I'll keep you posted...
cheers!

:)   Had to laugh when I heard your "holey moley"!  you just forgot the Batman....
henk: it didn't seem to work =o(

Ion seems to get confused about which terminator is used for each submenu...even after carefully checking every brace it still gives errors about expecting a curly brace before a 'submenu'.  I cut it back until I had only one submenu within the 'defmenu':
Code Sample

--
-- Ion menu definitions
--

-- Generated by dsl-flux2ion2

-- Load a library with some convenience functions.
include("menulib")
-- Load query support code
include("querylib")


-- Main menu
defmenu("DSL", {
       submenu("Apps", {
                       menuentry("Scite", make_exec_fn('scite')),
                       menuentry("Vim", make_exec_fn('rxvt -rv -e vi')),
                       menuentry("Zile EMACS-clone", make_exec_fn('rxvt -rv -T \'Zile\' -e zile')),
                       menuentry("Nano", make_exec_fn('rxvt -rv -T \'Nano\' -e nano-tiny')),
                       menuentry("xzgv Image Viewer", make_exec_fn('/usr/bin/xzgv')),
                       menuentry("Xpaint", make_exec_fn('/usr/bin/X11/xpaint')),
                       menuentry("Ted", make_exec_fn('ted-gtk')),
                       menuentry("Xpdf", make_exec_fn('/usr/bin/xpdf -geometry 640x480')),
                       menuentry("Xcalc", make_exec_fn('xcalc')),
                       menuentry("ABS spreadsheet", make_exec_fn('abs -geometry 640x480')),
                       menuentry("SQLite Book", make_exec_fn('/usr/local/bin/sqlitebook.pl')),
                       menuentry("PIM using Index", make_exec_fn(' rxvt -rv -T \'PIM using Index\' -e /usr/bin/index')),
                       menuentry("Net Dictionary", make_exec_fn(' rxvt -rv -T \'Internet Dictionary\' -e /usr/local/bin/getword')),
               })
       })


Ion finally seemed to accept this.  However, when I pressed F12 i didn't get a menu.

So I think it's back to the drawing board....

Screenshot of my desktop using the esample menu you give.
the only change i made was:
defmenu("DSL", {
to
defmenu("mainmenu", {
so the F12 key know where to find the menu

Oh...duuuhhhh.....
It hadn't occured to me that Ion probably needs "mainmenu" to tell it where to start =o)
So now I can build a menu with at least 1 level of submenus without the need to define them elsewhere, so that's a start.

I've been toying with various ideas, but it keeps coming back to me getting confused trying to keep up with where submenus and defmenus are being placed.  The fluxbox menu is very linear, and it's a bit of a boggler for me when I try to convert it to a non-linear format.

Next Page...
original here.