home *** CD-ROM | disk | FTP | other *** search
- (**************************************************)
- (* Test3D *)
- (* *)
- (* Copyright (c) 1993 by A. Furrer *)
- (**************************************************)
-
- program Test3D;
-
- {$R test3d.res}
-
- uses WinTypes, WinProcs, Objects, OWindows, ODialogs, Ctl3d;
-
- type
- Applikation =
- object(TApplication)
- procedure InitMainWindow; virtual;
- end;
-
- PMainwindow = ^TMainwindow;
- TMainwindow =
- object(TWindow)
- procedure WMLButtonDown(var Msg : TMessage); virtual
- wm_first + wm_LButtonDown;
- end;
-
- procedure TMainwindow.WMLButtonDown;
- begin
-
- Application^.ExecDialog(NEW(PDialog,Init(@Self,'Test3D')));
- end;
-
- procedure Applikation.InitMainWindow;
- begin
- MainWindow := New(PMainwindow, Init(nil, 'Test3D'));
- end;
-
- var Prg : Applikation;
-
- begin
- Ctl3dRegister(HInstance);
- Ctl3dAutoSubclass(HInstance);
-
- Prg.Init('Test3D');
- Prg.Run;
- Prg.Done;
-
- Ctl3dUnregister(HInstance);
- end.
-