-
Notifications
You must be signed in to change notification settings - Fork 10
/
SHOWCOLO.PAS
82 lines (67 loc) · 2.14 KB
/
SHOWCOLO.PAS
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
program showcolors;
uses
support,
strings,
tdl_glob,
totFAST,
totSYS,
totMSG,
totLOOK;
Procedure PopAbout;
var
foomsg:PMessageObj;
loop:byte;
avgobjsize:word;
s:string[20];
begin
new(foomsg,init(2,'Window Title'));
with foomsg^ do begin
AddLine('Window body text');
{for loop:=0 to numAboutLines-1 do AddLine(strpas(AboutText[loop]));}
show;
end;
dispose(foomsg,done);
end;
begin
{make selected/special text black on white, everything else white on black}
{a good reference: www.seasip.info/VintagePC/mda.html}
(*LookTOT^.SetMenu(Bor,Tit,Icon,HiHot,HiNorm,LoHot,LoNorm,Off:byte);*)
LookTOT^.SetMenu($0F,$09,$78,$78,$70,$01,$07,$07);
drawExampleMenu;
drawExamplePopup;
readln;
if Monitor^.ColorOn
then begin
LookTOT^.SetMenu($1b,$1e,$7f,$31,$3f,$1e,$17,$19);
LookTOT^.SetWindow($19,$1e,$1e,$1b);
faviconcol:=$1c; {bright red foreground}
end else begin
LookTOT^.SetMenu($0F,$09,$78,$78,$70,$01,$07,$07);
end;
drawExampleMenu;
drawExamplePopup;
readln;
screen.clear($0f,#32);
with LookTOT^ do begin
screen.writeat(1,1,vMenuBorder,'MenuBorder');
screen.writeat(1,2,vMenuTitle,'MenuTitle');
screen.writeat(1,3,vMenuIcon,'MenuIcon');
screen.writeat(1,4,vMenuHiHot,'MenuHiHot');
screen.writeat(1,5,vMenuHiNorm,'MenuHiNorm');
screen.writeat(1,6,vMenuLoHot,'MenuLoHot');
screen.writeat(1,7,vMenuLoNorm,'MenuLoNorm');
screen.writeat(1,8,vMenuInActive,'MenuInactive');
screen.writeat(1,10,vWinBorder,'Window Border');
screen.writeat(1,11,vWinBody,'Windown Body');
screen.writeat(1,12,vWinIcons,'Window Icons');
screen.writeat(1,13,vWinTitle,'Window Title');
screen.WriteHI(1,15,LookTOT^.vMenuHiHot,LookTOT^.vMenuHiNorm,'Selected ~M~enubar');
screen.WriteHI(1,16,LookTOT^.vMenuLoHot,LookTOT^.vMenuLoNorm,'Regular ~T~ext ');
{screen.writeat(1,21,$70,'vListLeftChar: '+vListLeftChar);
screen.writeat(1,22,$70,'vListRightChar: '+vListRightChar);
screen.writeat(1,23,$70,'vListToggleOnChar: '+vListToggleOnChar);
screen.writeat(1,24,$70,'vListToggleOffChar: '+vListToggleOffChar);}
end;
readln;
{popabout;}
end.