Post Reply 
Softmenu - DrawMenu wrapper
12-08-2014, 02:22 PM
Post: #5
RE: Softmenu - DrawMenu wrapper
Hello Giancarlo,

just a suggestion:
put special (to You) comments on top of each program and also above some EXPORTed functions/variables defining a menu location (e.g. //!menu: category subcategory ...) and/or some descriptive help text (e.g. //!purpose: hello world prog).

Then write a starter program which uses these lines by utilizing the Programs() variable:
1. get all program names,
2. read each program's source and search for your special comments,
3. build an appropriate menu structure (with menus, submenus, ..., help texts),
4. let the user select an item and return the program.function name (with additional "()" if in non-rpn mode)
Let a user key execute your starter.
If the parsing takes too long, save the once built structure in a program-local variable and rebuild only if manually requested.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Softmenu - DrawMenu wrapper - Angus - 12-05-2014, 10:47 AM
RE: Softmenu - DrawMenu wrapper - Angus - 12-08-2014, 11:50 AM
RE: Softmenu - DrawMenu wrapper - Snorre - 12-08-2014 02:22 PM



User(s) browsing this thread: 1 Guest(s)