RemFromPrj.pas 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. unit RemFromPrj;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, Main, StdCtrls, Misc;
  6. type
  7. TfrmRemoveFile = class(TForm)
  8. btnCancel: TButton;
  9. btnOk: TButton;
  10. Label1: TLabel;
  11. cboUnit: TComboBox;
  12. procedure FormShow(Sender: TObject);
  13. private
  14. { Private declarations }
  15. public
  16. { Public declarations }
  17. procedure FillCombo(pPrj: TLuaEditProject);
  18. end;
  19. var
  20. frmRemoveFile: TfrmRemoveFile;
  21. implementation
  22. {$R *.dfm}
  23. procedure TfrmRemoveFile.FillCombo(pPrj: TLuaEditProject);
  24. var
  25. x: Integer;
  26. begin
  27. cboUnit.Clear;
  28. for x := 0 to pPrj.lstUnits.Count - 1 do
  29. begin
  30. cboUnit.AddItem(TLuaEditUnit(pPrj.lstUnits.Items[x]).Name, pPrj.lstUnits.Items[x]);
  31. end;
  32. end;
  33. procedure TfrmRemoveFile.FormShow(Sender: TObject);
  34. begin
  35. cboUnit.ItemIndex := 0;
  36. end;
  37. end.