Changeset 9 for trunk/Forms/UFormCheckout.pas
- Timestamp:
- May 18, 2015, 11:49:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormCheckout.pas
r8 r9 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Menus, ExtCtrls; 9 10 10 11 type … … 16 17 ButtonCancel: TButton; 17 18 ButtonOk: TButton; 19 ComboBox1: TComboBox; 18 20 EditURL: TEdit; 19 21 EditDir: TEdit; … … 22 24 Label1: TLabel; 23 25 Label2: TLabel; 26 Label3: TLabel; 27 Panel1: TPanel; 24 28 procedure Button1Click(Sender: TObject); 29 procedure FormShow(Sender: TObject); 25 30 private 26 31 { private declarations } … … 36 41 {$R *.lfm} 37 42 43 uses 44 UCore, UBackend; 45 38 46 { TFormCheckout } 39 47 … … 46 54 end; 47 55 56 procedure TFormCheckout.FormShow(Sender: TObject); 57 var 58 I: Integer; 59 begin 60 ComboBox1.Clear; 61 for I := 0 to Core.Backends.Count - 1 do 62 ComboBox1.AddItem(TBackend(Core.Backends[I]).Name, Core.Backends[I]); 63 if ComboBox1.Items.Count > 0 then 64 ComboBox1.ItemIndex := 0; 65 end; 66 48 67 end. 49 68
Note:
See TracChangeset
for help on using the changeset viewer.