1
! ++++++++++++++++++++++++++++++++++++++++++++++
2
!.IDENTIFICATION: overlab.prg
3
!.PURPOSE: write a text (80 char. max.) on a graphic device
4
!.USE execute as LABEL par1 par2 par3 par4 par5, where:
5
! par1 = "text to write"
6
! par2 = position in world units
8
! par4 = character expansion factor
9
! par5 = centering parameter
10
!.AUTHOR: Ch. Ounnas 820705
11
!.VERSION 860911 KB ???
12
! 880303 RHW centering par. added, free angle and size
13
!.VERSION: 930512 RHW addition for non-existing plot file
16
!------------------------------------------------------------------
18
define/param p1 ? c "Enter text to be overplotted: "
24
inputi = m$index(p1,"\aglquotes")
26
write/keyw outputc/c/1/80 {p1} !get rid of any outer "'s
27
inputi = m$index(outputc,"\aglquotes")
31
write/keyw inputc/c/1/5 "\{"\}"
32
inputc(6:) = outputc({inputi(2)}:)
34
inputc = outputc(1:{inputi}) !last char overwritten in next line...
35
write/keyw inputc/c/{inputi}/5 "\{"\}"
37
inputc({inputi}:) = outputc({inputi(2)}:)
40
write/keyw inputc/c/1/80 {p1}
42
write/keyw inputr/r/1/2 {p3},{p4}
43
write/keyw inputi/i/1/1 {p5}