1
! @(#)alpha.prg 19.1 (ESO-DMD) 02/25/03 14:08:43
2
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
! MIDAS procedure alpha.prg to implement LABEL/DISPLAY + CLEAR/ALPHA
5
! K. Banse 910314, 941116, 961030, 981022
7
! use via LABEL/DISPLAY string line,column [mode] [option] [size] [key_flag]
8
! mode : A for alpha channel, O for overlay channel
9
! option : for DeAnza - submode for mode = A
11
! for X11 - color for mode = O
14
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16
CROSSREF TEXT POSITION CHANNEL COLOR SIZE KEY
19
if mid$cmnd(1:1) .eq. "C" THEN
20
write/keyw p1 " " !handle CLEAR/ALPHA
21
write/keyw p3 A !make sure we have the alph option
24
if mid$cmnd(11:11) .eq. "A" then !here for LABEL/ANY
25
action(3:3) = "F" !indicate input from ASCII file
26
else !here for LABEL/DISPLAY
27
define/param p1 ? c "Enter string: "
28
define/param p2 cursor c "Enter line_no,column_no or CURSOR: "
29
define/param p3 O c "Enter mode: "
30
define/param p4 white c "Enter color: "
31
define/param p5 0 n "Enter text size, 0/1/2 for Normal/Large/VeryLarge: "
32
define/param p6 n c "Enter key_flag, K(ey) or N(okey): "