home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 9
/
CD_ASCQ_09_1193.iso
/
news
/
558
/
field3
/
fld3menu.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-07-11
|
1KB
|
40 lines
Program field_3_menu; { FLD3MENU.PAS }
{ This program was written by Frank Wood to demonstrate the use of the unit
FIELD3.PAS for item selection from a horizontal bar menu. The getchoice
function in the field3 unit and this program were developed from a public
domain program LOOKFEEL.PAS. }
Uses crt,field3;
Const maxsize = 20;
Type optiontype=Array[1..maxsize] Of String[30];
descriptype = Array[1..maxsize] Of String[80];
Var option: optiontype;
descrip: descriptype;
chval: Byte;
Begin
ClrScr;
option[1] := 'WALTZ';
descrip[1]:='A graceful dance with a sweeping rhythm.';
option[2] := 'TANGO';
descrip[2]:='A slow and graceful Latin dance.';
option[3] := 'CHA-CHA';
descrip[3]:='A quick and bouncy Latin dance.';
option[4] := 'FOXTROT';
option[5] := 'SAMBA';
option[6] := 'HUSTLE';
option[7] := 'BOOGALOO';
option[8] := 'POGO';
lotxtcolor:=LightGray;
txtbkgnd:=Black;
chval := getchoice(option,descrip,8,2);
WriteLn;
WriteLn;
If chval < 9 Then
WriteLn('YOU ASKED ME TO ',option[chval],
'... - THANK YOU, BUT I DO NOT DANCE');
End.