Create simple menu program similar to old MS-DOS in look
NewDos Menu Program
Create a simple menu program that looks like old DOS screens.
Program provides a simple menu where user presses a number or letter to start a program or enter a sub-menu.
Program loads a text file as the title. This text file can contain ascii characters.
Background color and font color and font type should be set in configuration file along with menu options.
User runs newdosmenu.exe program, it takes over full screen and displays the title file and user options. User presses 1 or 2 or X or whatever key was defined for an option and that program, action or sub-menu is then run.
Example look of screen: Attached, should be full screen when run with text left aligned near center and title.txt centered as shown in the example.
Example configuration file contents(you can use xml or other formats but it should be a text file of some sort and does not have to match this format exactly, this is just to show you what should be included):
font=Dot Matrix Normal.ttf
Main="1. Start Program Wing Commander", 1, "c:\wing\wc.exe"
Main="2. Pick a game to play", 2, SUBMENU(Games)
Main="3. Pick a utility to run", 3, SUBMENU(Util)
Main="4. Exit", 4, EXIT
Games="1. Solitare", 1, "c:\games\sol.exe"
Games="2. Hangman", 2, "c:\games\hm.exe"
Games="3. Return to main menu", 3, Submenu(Main)
Util="1. Norton Disk Doctor", 1, "c:\util\ndd.exe"
Util="2. Run Dos CHKDSK", 2, "c:\util\chkdsk.exe"
Util="3. Return to main menu", 3, Submenu(Main)
In this example
Line1="1. Start Program Wing Commander", 1, "c:\wing\wc.exe"
the first quoted part is what is shown on screen, the next field is the key pressed to activate and the last field is what is executed when the key is pressed. When the program called by the menu exits, the menu reloads and the use can select the next option.
If a sub-menu is defined then that submenu is loaded
ESC always exits menu.
In the above example EXIT and SUBMENU are calls to either exit or to load a submenu.
Submenu(Main) returns to the main menu.
The menu calls can be implemented any feasable way and you do not have to follow this configuraiton file example exactly, as long as it has the same functionality and can be easily edited with notepad and configured.
The program does not require a lot of fancy cross checking, ie you can assume that there are not 2 elements with the same number and that the information in the config file is correct. The menus will always be fairly simple with only a few items on any menu or sub menu.
To make programming easy, you could assume only 7 items per page at maximum with 7 submenus maximum and used fixed arrays for this so you could setup a configuration file with these pre-setup and I can leave any unused fields with blank descriptions.
title.txt refers to a title file which contains a simple ascii graphic display and title text. An example will be provided that matches the sample screen shot.
Final program should be a stand alone exe that does not require installation. You can assume the configuration file and any other files will always be in the same folder as the exe. This is for Windows 32 or 64 bit systems Win7 or later.
Please let me know what language you would program this in and if you are familiar with old DOS menus.
This is a simple project to make a computer look like it is an old msdos system so it should be fun and easy to create. It is a great chance for a new programmer to work on a simple project or an experienced programmer to knock out a program in 30 minutes maybe.