Changeset 219 for trunk/Forms/FormCategorySelect.pas
- Timestamp:
- Jan 17, 2025, 9:05:54 PM (4 days ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormCategorySelect.pas
r218 r219 1 unit UFormCategorySelect; 2 3 {$mode delphi} 1 unit FormCategorySelect; 4 2 5 3 interface … … 7 5 uses 8 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UAcronym;7 Acronym, FormEx; 10 8 11 9 type … … 13 11 { TFormCategorySelect } 14 12 15 TFormCategorySelect = class(TForm )13 TFormCategorySelect = class(TFormeX) 16 14 ButtonOk: TButton; 17 15 ButtonCancel: TButton; 18 16 ListBox1: TListBox; 19 procedure FormCreate(Sender: TObject);20 procedure FormShow(Sender: TObject);21 17 procedure ListBox1DblClick(Sender: TObject); 22 18 procedure ListBox1KeyPress(Sender: TObject; var Key: char); 23 private24 { private declarations }25 19 public 26 20 procedure Load(RemoveItems: TStrings); 27 21 end; 28 29 var30 FormCategorySelect: TFormCategorySelect;31 22 32 23 resourcestring … … 35 26 SRemoveCategoryQuery = 'Do you really want to remove selected categories?'; 36 27 28 37 29 implementation 38 30 … … 40 32 41 33 uses 42 UCore;34 Core; 43 35 44 36 { TFormCategorySelect } 45 46 procedure TFormCategorySelect.FormShow(Sender: TObject);47 begin48 end;49 50 procedure TFormCategorySelect.FormCreate(Sender: TObject);51 begin52 Core.Translator.TranslateComponentRecursive(Self);53 Core.ThemeManager.UseTheme(Self);54 end;55 37 56 38 procedure TFormCategorySelect.ListBox1DblClick(Sender: TObject); … … 69 51 I: Integer; 70 52 begin 71 with Core. AcronymDb do begin53 with Core.Core.AcronymDb do begin 72 54 ListBox1.Sorted := False; 73 55 while ListBox1.Items.Count < Categories.Count do … … 76 58 ListBox1.Items.Delete(ListBox1.Items.Count - 1); 77 59 for I := 0 to Categories.Count - 1 do begin 78 ListBox1.Items.Strings[I] := TAcronymCategory(Categories[I]).Name;60 ListBox1.Items.Strings[I] := Categories[I].Name; 79 61 ListBox1.Items.Objects[I] := Categories[I]; 80 62 ListBox1.Selected[I] := False;
Note:
See TracChangeset
for help on using the changeset viewer.