Ignore:
Timestamp:
Mar 9, 2012, 9:40:05 AM (13 years ago)
Author:
chronos
Message:
  • Fixed: Memory leak in TReportColumn.
  • Modified: Main item list is created once on application start instead on every tree item mouse doubleclick.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UItemAdd.pas

    r40 r41  
    2323    procedure FormCreate(Sender: TObject);
    2424    procedure FormDestroy(Sender: TObject);
     25    procedure FormKeyPress(Sender: TObject; var Key: char);
    2526    procedure FormShow(Sender: TObject);
    2627  private
     
    100101end;
    101102
     103procedure TItemAddForm.FormKeyPress(Sender: TObject; var Key: char);
     104begin
     105  if Key = #27 then Close;
     106end;
     107
    102108procedure TItemAddForm.FormShow(Sender: TObject);
    103109begin
     
    124130    Panel1.Controls[I].Free;
    125131
    126   //Report.Load(SelectedObject, SelectedObject.PrimaryKey + ' = ' +
    127   //  IntToStr(SelectedItemId));
     132  Report.Load(SelectedObject, SelectedObject.PrimaryKey + ' = ' +
     133    IntToStr(SelectedItemId));
    128134
    129135  // Load column names
Note: See TracChangeset for help on using the changeset viewer.