home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
bonus
/
tpwform
/
moule.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-08-11
|
808b
|
40 lines
program moule; (* Un squelette de programme minimal *)
uses wintypes,winprocs,wobjects;
const
id = 100;
type
tprog = object(tapplication)
procedure initmainwindow;virtual;
end;
pfenetre =^tfenetre;
tfenetre = object(twindow)
constructor init(ancetre : pwindowsobject; titre: pchar);
end;
procedure tprog.initmainwindow;
begin
mainwindow := new(pfenetre,init(nil,'DΘmo'));
end;
constructor tfenetre.init(ancetre : pwindowsobject; titre: pchar);
begin
twindow.init(ancetre,titre);
attr.x := 30;
attr.y := 30 ;
attr.h := 300 ;
attr.w := 500 ;
attr.style := ws_overlapped or ws_visible {OR ws_hscroll OR
ws_vscroll} or ws_sysmenu;
end;
var prog : tprog;
begin
prog.init('A_quoi_ca_sert_la_frite');
prog.run;
prog.done;
end.