home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of German Only 1
/
romside_best_of_german_only_1.iso
/
wissen
/
dos
/
wgraph
/
entpack.exe
/
WGBSP!.EXE
/
BSP8.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-12-01
|
2KB
|
99 lines
program Beispiel8;
uses GApp,
GDecl,
GViews,
GText,
GHelp,
Graph;
const cmNew = 101; cmRestore = 201;
cmLoad = 102; cmCut = 202;
cmSave = 103; cmCopy = 203;
cmPrint = 104; cmMove = 204;
cmErase = 105; cmTurn = 204;
cmMagni = 301; cmRoman = 401;
cmGrid = 302; cmScript = 402;
cmPencel = 303; cmTimes = 403;
cmBrush = 304; cmNormal = 404;
cmBold = 405;
cmItalic = 406;
cmUnderline = 407;
type TApplication=object(TApp)
procedure SetDesktopFrame(Titel:string);virtual;
procedure SetDesktopBackground; virtual;
procedure InitMenuBar; virtual;
end;
PNewDTBgrd=^TNewDTBgrd;
TNewDTBgrd=object(TDsktpBgrd)
procedure Draw;virtual;
end;
var MyProg:TApplication;
{Implementation TApplication}
procedure TApplication.SetDesktopFrame(Titel:string);
var R:TRect;
begin
with Desktop^ do
begin
GetBounds(R);
Frame:=new(PFrame, Init(R,R,Titel,winDouble+winPanel+winMenu));
Frame^.Palette:=Palette1;
List^.InsertItem(Frame);
end;
end;
procedure TApplication.SetDesktopBackground;
var R:TRect;
NBgrd:PNewDTBgrd;
begin
with Desktop^ do
begin
R:=Frame^.Area;
NBgrd:=new(PNewDTBgrd, Init(R));
NBgrd^.Palette[7]:=#14;
NBgrd^.Palette[8]:=#7;
List^.InsertItem(NBgrd);
end;
end;
procedure TApplication.InitMenuBar;
begin
SetFont(Thin16);
SetOnlineHelp('Help.hlp');
Sprache:=Englisch;
Palette[1]:=#14;
Palette[5]:=#14;
Palette[4]:=#4;
Palette[12]:=#4;
LoadMenu('BSP8.MNU');
end;
{Implementation TNewDTBgrd}
procedure TNewDTBgrd.Draw;
begin
with Border do
begin
SetFillStyle(SolidFill,GetPalColor(7));
Bar(A.x,A.y,B.x,A.y+20);
SetFillStyle(SolidFill,GetPalColor(8));
Bar(A.x,A.y+22,B.x,B.y);
end;
end;
begin
MyProg.Init('Beispiel 8');
MyProg.Run;
MyProg.Done;
end.