home *** CD-ROM | disk | FTP | other *** search
- /*----------------------------select-------------------------------*/
- /*DESCRIPTION: Displays text and allows the user to choose one */
- /* of the displayed lines. */
- /* */
- /*INPUT:
- X & Y - coordinates the upper left corner of the first
- choice appears at
- TotChoices - number of choices
- Choices - string of chars, 1 char for each choice & the char
- for the chosen choice is returned.
- Text - array of pointers to char that point to the text
- to be displayed
- TextColor, BGcolor - foreground & background text color
- BarColor - color of selection bar
- BarTextColor - color of text in bar
- Abort - 3 & 23- don't accept Esc key
- Abort - >7 double space displayed text.
- RETURNS: corresponding char in Choices of selection.
- Abort = 1 Esc pressed
- Abort = 0 Esc not pressed.
- USES: strspc, GetCursor, OffCursor, SetCursor
- -------------------------------------------------------------------*/
-
- int select(int X, int Y, int TotChoices, char *Choices, char *Text[],
- int TextColor, int BGcolor, int BarColor,
- int BarTextColor, int *Abort)