home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
TPBOOK
/
DEMOTBAC.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-08-07
|
856b
|
52 lines
{ DEMOTBAC.PAS }
program DemoTBackground;
uses
Objects, App, Views;
type
TSampleProgram = object(TApplication)
procedure InitDeskTop; virtual;
end;
PNewDeskTop = ^TNewDeskTop;
TNewDeskTop = object(TDeskTop)
procedure InitBackground; virtual;
end;
var
SampleProgram : TSampleProgram;
procedure TNewDeskTop.InitBackground;
Var
Bounds: TRect;
Temp : PBackground;
begin
{ Program never gets here ???? }
Bounds.Assign( 0, 1, 80, 24 );
Temp := New( PBackground, Init( Bounds, Char($FF) ) );
Insert(Temp);
Background := Temp;
end;
procedure TSampleProgram.InitDeskTop;
Var
Bounds: TRect;
begin
Bounds.Assign( 1, 0, 80, 24 );
DeskTop := New( PNewDeskTop, Init( Bounds ) );
end;
begin
with SampleProgram do
begin
Init;
Run;
Done;
end;
end.