-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathERROR.PRG
More file actions
executable file
·40 lines (39 loc) · 870 Bytes
/
ERROR.PRG
File metadata and controls
executable file
·40 lines (39 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
********************************************
* Common Dialog box for Suite v6 system
* Author: Devraj Mukherjee
* PART OF the OPEN SOURCE PROJECT
********************************************
parameter line1,line2,line3
close all
if len(line1)>len(line2)
width=len(line1)+6
else
width=len(line2)+6
endif
if len(line2)=0
length=7
else
length=8
endif
set color to gr/w
define window error from 1,1 to length,width double shadow title " &line3 " color scheme 2 IN SCREEN
move window error center
activate window error
set color to n+/w
@ 1,2 say line1
col=width-12
set cursor off
if len(line2)>0
@ 2,2 say line2
@ 4,1 to 4,width-4
@ 5,col say"< OK >" color w+/n+
else
@ 3,1 to 3,width-4
@ 4,col say"< OK >" color w+/n+
endif
read timeout 10
deacti window error
set cursor on
set color to
set color to g+/b+,w+/bg+
return