Generic UI
- Posted by irv Oct 15, 2020
- 807 views
Kenneth Rhodes' Budget program has inspired me to post the code that I'm using to build the GUI for a similar program. You may be surprised to see how simple it can be if you break things up into manageable "chunks".
The four short files that define the interface are a total of only 125 lines O'Code. This is a good basic "generic" UI for the user-interface part of any number of programs, and with a bit of care to keep things organized, you can run and test the interface without having the functions called by that interface defined at all. These 4 should do that:
budget.ex
file_menu.e
table_menu.e
record_menu.e
I have already written and (mostly) tested the routines that connect to the eds functions. Separating them as completely as possible from the interface makes things much easier.
You can ask questions here or as a comment to the files, I'll try to answer.