utextui.pas 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. unit uTextUi;
  2. {$mode objfpc}{$H+}
  3. interface
  4. uses
  5. Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
  6. StdCtrls, Buttons, MCSLSU;
  7. type
  8. { TForm2 }
  9. TForm2 = class(TForm)
  10. BitBtn1: TBitBtn;
  11. Memo1: TMemo;
  12. Panel1: TPanel;
  13. procedure BitBtn1Click(Sender: TObject);
  14. procedure FormCreate(Sender: TObject);
  15. private
  16. { private declarations }
  17. public
  18. { public declarations }
  19. procedure addHexFile(list: TStrings);
  20. end;
  21. var
  22. Form2: TForm2;
  23. implementation
  24. {$R *.lfm}
  25. { TForm2 }
  26. var
  27. lsuCode: integer;
  28. procedure TForm2.BitBtn1Click(Sender: TObject);
  29. begin
  30. Form2.Close;
  31. end;
  32. procedure TForm2.FormCreate(Sender: TObject);
  33. begin
  34. MCSLSU.MakeForm('form2', 'ID_', form2);
  35. Caption := MCSLSU.GetLSUText('form2Captions', 'ID_CAPTION', lsuCode);
  36. BitBtn1.Caption :=MCSLSU.GetLSUText('form2Buttons', 'ID_CLOSE', lsuCode);
  37. BitBtn1.Hint :=MCSLSU.GetLSUText('form2ButtonHints', 'ID_CLOSE', lsuCode);
  38. end;
  39. procedure TForm2.addHexFile(list: TStrings);
  40. begin
  41. Memo1.Lines.Clear;
  42. Memo1.Lines.AddStrings(list);
  43. end;
  44. end.