Changeset 358 for trunk/Packages/Common/Forms/FormList.pas
- Timestamp:
- Dec 31, 2024, 11:06:34 AM (8 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Forms/FormList.pas
r355 r358 47 47 Selected: Boolean); 48 48 private 49 FImages: TImageList; 49 50 FList: TBaseItemList; 51 procedure SetImages(AValue: TImageList); 50 52 procedure SetList(AValue: TBaseItemList); 51 53 procedure UpdateListViewColumns; … … 56 58 procedure UpdateList; 57 59 property List: TBaseItemList read FList write SetList; 60 property Images: TImageList read FImages write SetImages; 58 61 end; 59 62 … … 264 267 end; 265 268 269 procedure TFormList.SetImages(AValue: TImageList); 270 begin 271 if FImages = AValue then Exit; 272 FImages := AValue; 273 ToolBar1.Images := FImages; 274 PopupMenu1.Images := FImages; 275 end; 276 266 277 procedure TFormList.UpdateListViewColumns; 267 278 var … … 293 304 procedure TFormList.UpdateInterface; 294 305 begin 295 ARemove.Enabled := Assigned(FList) and Assigned(ListView1.Selected) and ( List.Count >MinItemCount);306 ARemove.Enabled := Assigned(FList) and Assigned(ListView1.Selected) and ((List.Count - ListView1.SelCount) >= MinItemCount); 296 307 AModify.Enabled := Assigned(FList) and Assigned(ListView1.Selected); 297 308 AAdd.Enabled := Assigned(FList) and ((MaxItemCount = -1) or ((MaxItemCount <> -1) and (List.Count < MaxItemCount)));
Note:
See TracChangeset
for help on using the changeset viewer.