home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
dbase
/
tc
/
tpcmenu
/
tpcmenu.prg
< prev
Wrap
Text File
|
1989-07-13
|
2KB
|
48 lines
SET ECHO OFF
SET TALK OFF
SET STAT OFF
SET ESCA OFF
LOAD TPCMENU
SET COLOR TO RG+/N
@ 10,20 SAY "┌───────────────────────────────────────┐"
@ 11,20 SAY "│ M A I N M E N U │"
@ 12,20 SAY "├───────────────────────────────────────┤"
@ 13,20 SAY "│ OPTION #1 │"
@ 14,20 SAY "│ OPTION #2 │"
@ 15,20 SAY "│ OPTION #3 │"
@ 16,20 SAY "└───────────────────────────────────────┘"
CHOICE = 1 && THE NUMBER OF THE CHOICE
KEY = 0 && KEY THAT WAS PRESSED
UNDER = '' && VARIABLE USED TO RETURN WHAT IS UNDER THE LIGHTBAR
VERT_SPACE = 0 && THE NUMBER OF VERTICAL SPACES
OTHER_KEY = '*;*'
* │
* └──────── CHR(59) = SCAN CODE FOR THE F1 KEY
*
DO LBAR WITH CHOICE,0,13,21,3,1,3,2,39,14,78
* │ │ │ │ │ │ │ │ │ │ │
* │ │ │ │ │ │ │ │ │ │ └───(11) BAR COLOR
* │ │ │ │ │ │ │ │ │ └──────(10) COLOR FOR THE BACKGROUND
* │ │ │ │ │ │ │ │ └──────────(9) WIDTH OF THE LIGHTBAR
* │ │ │ │ │ │ │ └─────────────(8) HORIZONTAL SPACES BETWEEN CHOICES
* │ │ │ │ │ │ └───────────────(7) TOTAL NUMBER OF CHOICES
* │ │ │ │ │ └─────────────────(6) TOTAL NUMBER OF COLLUMNS
* │ │ │ │ └───────────────────(5) TOTAL NUMBER OF ROWS
* │ │ │ └─────────────────────(4) UPPER LEFT COLLUMN OF THE FIRST
* │ │ │ COLLUMN
* │ │ └────────────────────────(3) UPPER LEFT ROW OF FIRST CHOICE
* │ └───────────────────────────(2) NUMBER OF ROWS BETWEEN MENU ROWS
* └────────────────────────────────(1) FIRST OPTION TO BE HILITED
IF KEY=1
@ 18,30 SAY 'YOU PRESSED THE ESCAPE KEY'
ENDIF
IF KEY=28
@ 18,30 SAY 'YOU PRESSED THE ENTER KEY'
ENDIF
IF KEY=59
@ 18,30 SAY 'YOU PRESSED THE F1 KEY'
ENDIF
@ 19,30 SAY 'YOU CHOSE #'+LTRIM(RTRIM(STR(CHOICE)))
@ 20,30 SAY 'THE OPTION UNDER THE LIGHTBAR WAS: '+LTRIM(UNDER)
RELE MODU TPCMENU