📄 unit7.pas
字号:
unit Unit7;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, StdCtrls, Mask, RzEdit, ExtCtrls, RzForms, INIFiles;
type
TPos_Setup = class(TForm)
Panel2: TPanel;
Panel1: TPanel;
RzFormShape1: TRzFormShape;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
RzEdit1: TRzEdit;
Label4: TLabel;
RzEdit2: TRzEdit;
Label5: TLabel;
RzEdit3: TRzEdit;
Label6: TLabel;
RzEdit4: TRzEdit;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedButton;
OpenDialog1: TOpenDialog;
procedure SpeedButton2Click(Sender: TObject);
procedure Label2Click(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Pos_Setup: TPos_Setup;
implementation
{$R *.dfm}
procedure TPos_Setup.SpeedButton2Click(Sender: TObject);
begin
Pos_Setup.Close;
end;
procedure TPos_Setup.Label2Click(Sender: TObject);
begin
if OpenDialog1.Execute then begin
end else begin
end;
end;
procedure TPos_Setup.SpeedButton1Click(Sender: TObject);
var
vIniFile : TIniFile;
begin
vIniFile:=TIniFile.Create(ExtractFilePath(ParamStr(0))+'Config.Ini');
vIniFile.WriteString('System','Name',RzEdit1.Text);
vIniFile.WriteString('System','La1' ,RzEdit2.Text);
vIniFile.WriteString('System','La2' ,RzEdit3.Text);
vIniFile.WriteString('System','Tel' ,RzEdit4.Text);
end;
procedure TPos_Setup.FormActivate(Sender: TObject);
var
vIniFile : TIniFile;
begin
vIniFile:=TIniFile.Create(ExtractFilePath(ParamStr(0))+'Config.Ini');
RzEdit1.Text:=vIniFile.ReadString('System','Name','');
RzEdit2.Text:=vIniFile.ReadString('System','La1' ,'');
RzEdit3.Text:=vIniFile.ReadString('System','La2' ,'');
RzEdit4.Text:=vIniFile.ReadString('System','Tel' ,'');
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -