unit uTextUi; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, Buttons, MCSLSU; type { TForm2 } TForm2 = class(TForm) BitBtn1: TBitBtn; Memo1: TMemo; Panel1: TPanel; procedure BitBtn1Click(Sender: TObject); procedure FormCreate(Sender: TObject); private { private declarations } public { public declarations } procedure addHexFile(list: TStrings); end; var Form2: TForm2; implementation {$R *.lfm} { TForm2 } var lsuCode: integer; procedure TForm2.BitBtn1Click(Sender: TObject); begin Form2.Close; end; procedure TForm2.FormCreate(Sender: TObject); begin MCSLSU.MakeForm('form2', 'ID_', form2); Caption := MCSLSU.GetLSUText('form2Captions', 'ID_CAPTION', lsuCode); BitBtn1.Caption :=MCSLSU.GetLSUText('form2Buttons', 'ID_CLOSE', lsuCode); BitBtn1.Hint :=MCSLSU.GetLSUText('form2ButtonHints', 'ID_CLOSE', lsuCode); end; procedure TForm2.addHexFile(list: TStrings); begin Memo1.Lines.Clear; Memo1.Lines.AddStrings(list); end; end.