home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1992
/
number1
/
fonttest.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-28
|
1KB
|
64 lines
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.