Ignore:
Timestamp:
Jul 10, 2019, 11:35:10 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Corrected dimensions in About dialog.
  • Removed: Old Player and Players forms replaced by general item list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormList.pas

    r300 r301  
    4444    procedure ListView1Data(Sender: TObject; Item: TListItem);
    4545    procedure ListView1KeyPress(Sender: TObject; var Key: char);
     46    procedure ListView1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState
     47      );
    4648    procedure ListView1SelectItem(Sender: TObject; Item: TListItem;
    4749      Selected: Boolean);
     
    129131  FormItem := TFormItem.Create(Self);
    130132  try
    131     TempEntry.Name := SNew + ' ' + LowerCase(List.GetItemClass.GetClassName);
     133    TempEntry.Name := List.GetNextAvailableName(SNew + ' ' + LowerCase(List.GetItemClass.GetClassName));
    132134    FormItem.Item := TempEntry;
    133135    if FormItem.ShowModal = mrOk then begin
     
    250252end;
    251253
     254procedure TFormList.ListView1KeyUp(Sender: TObject; var Key: Word;
     255  Shift: TShiftState);
     256begin
     257  if Key = 45 then AAdd.Execute;
     258  if Key = 46 then ARemove.Execute;
     259end;
     260
    252261procedure TFormList.ListView1SelectItem(Sender: TObject;
    253262  Item: TListItem; Selected: Boolean);
Note: See TracChangeset for help on using the changeset viewer.