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
/
BSP3.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-12-01
|
886b
|
46 lines
program Beispiel3;
uses GApp,
GDecl,
GViews;
type TApplication=object(TApp)
procedure SetDesktopFrame(Titel:string);virtual;
procedure SetDesktopBackground;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;
begin
with Desktop^ do
begin
R:=Frame^.Area;
Bgrd:=new(PDsktpBgrd, Init(R));
Bgrd^.Palette[7]:=#14;
Bgrd^.Palette[8]:=#11;
List^.InsertItem(Bgrd);
end;
end;
begin
MyProg.Init('Beispiel 3');
MyProg.Run;
MyProg.Done;
end.