www.pudn.com > Jiayu.rar > Unit1.pas


unit Unit1; 
 
interface 
 
uses 
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 
  Dialogs, StdCtrls, ExtCtrls; 
 
type 
  TFrmmain = class(TForm) 
    pnl1: TPanel; 
    rg1: TRadioGroup; 
    pnl2: TPanel; 
    pnl3: TPanel; 
    Button1: TButton; 
    grp1: TGroupBox; 
    cbb1: TComboBox; 
    rg2: TRadioGroup; 
    procedure Button1Click(Sender: TObject); 
    procedure FormCreate(Sender: TObject); 
  private 
    { Private declarations } 
  public 
    filename:string; 
    wordlist:TStringList; 
    { Public declarations } 
  end; 
 
var 
  Frmmain: TFrmmain; 
 
implementation 
   uses UntInput ; 
{$R *.dfm} 
{$R WINDOWSXP.RES} 
procedure TFrmmain.Button1Click(Sender: TObject); 
begin 
   with TFrminput.Create(Self) do 
   begin 
     ShowModal ; 
     Free; 
   end; 
end; 
 
procedure TFrmmain.FormCreate(Sender: TObject); 
begin 
  filename:=getAppPath+'lujiayu.txt'; 
end; 
 
end.