Menu "resource" generator
BlitzMax Forums/MaxGUI Module/Menu "resource" generator
| ||
I was playing around with my parser generator and tried to come up with something other than a programming language. I ended up trying to make a menu resource for making it easier to change the menus in MaxGUI. It takes something like this: { Import BRL.MaxGUI } MENU Edit { "Cu&t" MENUCUT [CTRL+X] . "&Copy" MENUCOPY [CTRL+C] . "&Paste" MENUPASTE [CTRL+V] . - "Select &All" MENUSELECTALL [CTRL+A] . } MAINMENU main { "&File" <file> { "&New" MENUNEW [CTRL+N] . "&Open" MENUOPEN [CTRL+O] . "&Recent" <recentmenu> . !"&Close" MENUCLOSE [CTRL+F4] . - !"&Save" MENUSAVE [CTRL+S] . !"Save &As" MENUSAVEAS [SHIFT+CTRL+S] . - "E&xit" MENUEXIT . } @Edit "&Edit" <edit> } And generates a file with this: Does anyone find this sort of thing useful? |
| ||
Heres an example to see it in action: |