Changeset 301 for trunk/Forms/UFormList.pas
- Timestamp:
- Jul 10, 2019, 11:35:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormList.pas
r300 r301 44 44 procedure ListView1Data(Sender: TObject; Item: TListItem); 45 45 procedure ListView1KeyPress(Sender: TObject; var Key: char); 46 procedure ListView1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState 47 ); 46 48 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 47 49 Selected: Boolean); … … 129 131 FormItem := TFormItem.Create(Self); 130 132 try 131 TempEntry.Name := SNew + ' ' + LowerCase(List.GetItemClass.GetClassName);133 TempEntry.Name := List.GetNextAvailableName(SNew + ' ' + LowerCase(List.GetItemClass.GetClassName)); 132 134 FormItem.Item := TempEntry; 133 135 if FormItem.ShowModal = mrOk then begin … … 250 252 end; 251 253 254 procedure TFormList.ListView1KeyUp(Sender: TObject; var Key: Word; 255 Shift: TShiftState); 256 begin 257 if Key = 45 then AAdd.Execute; 258 if Key = 46 then ARemove.Execute; 259 end; 260 252 261 procedure TFormList.ListView1SelectItem(Sender: TObject; 253 262 Item: TListItem; Selected: Boolean);
Note:
See TracChangeset
for help on using the changeset viewer.