Customizing MarxMenu Sample Files

Prev Next Home Home Table Of Contents Index

CUSTOMIZING MARXMENU SAMPLE FILES

Included in the MarxMenu package are menu files which you can easily modify to execute your programs and perform other functions you desire. Using MarxEdit, the text editor included in this package, you can modify and customize these menu files.

Also included to demonstrate the power and versatility of the menu system is a game menu NIM.MNU. This is a game written in the menu system that demonstrates some of the logic functions and programmability of the system.


 Here's a simple example of a menu file:
 ===================================
 ClearScreen
 DrawBox 30 9 25 8
 Writeln ' 1) Lotus'
 Writeln ' 2) dBase'
 Writeln ' 3) Wordstar'
 Writeln
 Write 'Select: '

OnKey '1' cd\lotus 123

OnKey '2' cd\db3 db3

OnKey '3' cd\wordstar ws

====================================

Notice in looking at the "OnKey" statements that all you have to do is tell MarxMenu how to get to the program. Although, MarxMenu takes care of reloading itself after exiting a selected program, its does not return to its own subdirectory as many other menu programs do.

That means that if you execute a program in another subdirectory, when you come back to the menu, you remain in that subdirectory. If you normally run your applications with a batch file, consider having MarxMenu change directories and execute the program for you. This will eliminate debugging problems caused by the actions of your batch files.

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home