home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. CD ROM (Annual Premium Edition)
/
premium.zip
/
premium
/
MUSICLAB
/
MIDIMOD1.ZIP
/
TEXTWIN.H
< prev
Wrap
Text File
|
1993-04-10
|
1KB
|
46 lines
/*
* TEXTWIN.H - Text-windowing system header
* Turbo C 2.0
*
* Author: Andrew Scott (Adrenalin Software)
*
* Date: 14/3/1993 ver 0.1
*/
extern void MainWindow(char *title, int n, ...);
/* Post: Screen is set up with a nice title and n menus */
extern void SetMenu(int menu, int n, ...);
/* Post: n commands has been set in menu #menu (0 = 1st) */
extern int Choice();
/*
* Returns: a function reference number corresponding to a chosen command,
* but returns -1 on an error.
*/
extern int ScrollChoice(char *title, const char **sp, int w);
/*
* Returns: The offset of the string from s which is chosen, -1 on none
* s points to the start of a list of strings, max length w, NULL term.
*/
extern void ClearWin();
/* Post: Area below command and title bars is clear */
extern void DrawBox(const char **sp);
/* Post: The NULL-terminated array of strings pointed to by sp is printed */
extern char InfoBox(const char **sp);
/*
* Returns: The key pressed after the NULL-terminated array of strings
* pointed to by sp is printed.
*/
extern char *DialogBox(const char **sp, char *def);
/*
* Returns: The string entered (or def if none entered), after printing
* box filled with NULL-terminated strings sp.
*/