Changeset 362 for trunk/Packages/Common/Forms/FormKeyShortcuts.pas
- Timestamp:
- Dec 31, 2024, 1:15:01 PM (8 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Forms/FormKeyShortcuts.pas
r332 r362 13 13 14 14 TFormKeyShortcuts = class(TFormEx) 15 ButtonClose: TButton; 15 16 ListView1: TListView; 16 17 ListViewSort1: TListViewSort; 17 18 MenuItem1: TMenuItem; 18 19 PopupMenu1: TPopupMenu; 20 procedure ButtonCloseClick(Sender: TObject); 19 21 procedure FormCreate(Sender: TObject); 20 22 procedure FormDestroy(Sender: TObject); … … 25 27 procedure MenuItem1Click(Sender: TObject); 26 28 private 27 function GetImage List: TCustomImageList;28 procedure SetImage List(AValue: TCustomImageList);29 function GetImages: TCustomImageList; 30 procedure SetImages(AValue: TCustomImageList); 29 31 public 30 32 SourceComponents: TObjectList<TComponent>; 31 33 MainForm: TForm; 32 34 procedure LoadFromComponent(C: TComponent); 33 property Image List: TCustomImageList read GetImageList write SetImageList;35 property Images: TCustomImageList read GetImages write SetImages; 34 36 end; 35 37 … … 49 51 SShortcut = 'Shortcut'; 50 52 SKeyShortcuts = 'Key shortcuts'; 53 SClose = 'Close'; 51 54 52 55 { TFormKeyShortcuts } … … 105 108 end; 106 109 110 procedure TFormKeyShortcuts.ButtonCloseClick(Sender: TObject); 111 begin 112 Close; 113 end; 114 107 115 procedure TFormKeyShortcuts.FormDestroy(Sender: TObject); 108 116 begin … … 116 124 end; 117 125 118 function TFormKeyShortcuts.GetImage List: TCustomImageList;126 function TFormKeyShortcuts.GetImages: TCustomImageList; 119 127 begin 120 128 Result := ListView1.SmallImages; 121 129 end; 122 130 123 procedure TFormKeyShortcuts.SetImage List(AValue: TCustomImageList);131 procedure TFormKeyShortcuts.SetImages(AValue: TCustomImageList); 124 132 begin 125 133 ListView1.SmallImages := AValue;
Note:
See TracChangeset
for help on using the changeset viewer.