home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / TEECHART / Delphi1_And_Delphi2 / EXAMPLES / PACMAN / URANKIN.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-10-24  |  758 b   |  44 lines

  1. unit Urankin;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Buttons,IniFiles;
  8.  
  9. type
  10.   TTeeRanking = class(TForm)
  11.     ListBox1: TListBox;
  12.     BitBtn1: TBitBtn;
  13.     procedure BitBtn1Click(Sender: TObject);
  14.     procedure FormShow(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. var
  22.   TeeRanking: TTeeRanking;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TTeeRanking.BitBtn1Click(Sender: TObject);
  29. begin
  30.   Close;
  31. end;
  32.  
  33. procedure TTeeRanking.FormShow(Sender: TObject);
  34. begin
  35.   With TIniFile.Create('teepac.ini') do
  36.   try
  37.     ReadSection('Ranking',Listbox1.Items);
  38.   finally
  39.     Free;
  40.   end;
  41. end;
  42.  
  43. end.
  44.