home *** CD-ROM | disk | FTP | other *** search
- Program FontTest;
-
- {$R FontTest.res}
-
- Uses
- WObjects,
- WinTypes,
- WinProcs,
- FontList;
-
- Type
- pDlgAppWindow = ^tDlgAppWindow;
- tDlgAppWindow = Object (tDlgWindow)
- FontList: pFontList;
- Constructor Init;
- Destructor Done; Virtual;
- Function GetClassName: pChar; Virtual;
- Procedure SetupWindow; Virtual;
- End;
-
- Type
- tDlgApp = Object (tApplication)
- Procedure InitMainWindow; Virtual;
- End;
-
- Constructor tDlgAppWindow.Init;
- Begin
- tDlgWindow.Init (nil, 'MAIN');
- FontList := New (pFontList, InitResource (@Self, 101));
- End;
-
- Destructor tDlgAppWindow.Done;
- Begin
- Dispose (FontList, Done);
- tDlgWindow.Done;
- End;
-
- Function tDlgAppWindow.GetClassName: pChar;
- Begin
- GetClassName := 'MAIN';
- End;
-
- Procedure tDlgAppWindow.SetupWindow;
- Begin
- tDlgWindow.SetupWindow;
- FontList^.DevModeChange
- ('HP ThinkJet (2225 C-D),THINKJET,LPT1:');
- End;
-
- Procedure tDlgApp.InitMainWindow;
- Begin
- MainWindow := New (pDlgAppWindow, Init);
- End;
-
- Var
- DlgApp: tDlgApp;
-
- Begin
- DlgApp.Init ('MAIN');
- DlgApp.Run;
- DlgApp.Done;
- End.
-
-