Changeset 85 for trunk/Forms
- Timestamp:
- Aug 8, 2016, 12:37:58 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAcronym.lfm
r69 r85 8 8 ClientWidth = 509 9 9 OnClose = FormClose 10 OnKeyUp = FormKeyUp11 10 OnShow = FormShow 12 11 Position = poScreenCenter … … 26 25 Width = 361 27 26 Anchors = [akTop, akLeft, akRight] 28 OnKey Up = FormKeyUp27 OnKeyPress = EditMeaningKeyPress 29 28 TabOrder = 0 30 29 end … … 43 42 Width = 361 44 43 Anchors = [akTop, akLeft, akRight] 45 OnKey Up = FormKeyUp44 OnKeyPress = EditMeaningKeyPress 46 45 TabOrder = 1 47 46 end … … 54 53 Caption = 'Ok' 55 54 ModalResult = 1 56 OnKey Up = FormKeyUp55 OnKeyPress = EditMeaningKeyPress 57 56 TabOrder = 7 58 57 end … … 65 64 Caption = 'Cancel' 66 65 ModalResult = 2 67 OnKey Up = FormKeyUp66 OnKeyPress = EditMeaningKeyPress 68 67 TabOrder = 6 69 68 end … … 82 81 Width = 361 83 82 Anchors = [akTop, akLeft, akRight] 83 OnKeyPress = EditMeaningKeyPress 84 84 ScrollBars = ssAutoBoth 85 85 TabOrder = 2 … … 101 101 ItemHeight = 0 102 102 MultiSelect = True 103 OnKeyPress = EditMeaningKeyPress 103 104 OnSelectionChange = ListBox1SelectionChange 104 105 PopupMenu = PopupMenuCategory … … 112 113 Width = 75 113 114 Action = ACategoryAdd 115 OnKeyPress = EditMeaningKeyPress 114 116 TabOrder = 4 115 117 end … … 120 122 Width = 75 121 123 Action = ACategoryRemove 124 OnKeyPress = EditMeaningKeyPress 122 125 TabOrder = 5 123 126 end -
trunk/Forms/UFormAcronym.pas
r33 r85 34 34 procedure ACategoryAddExecute(Sender: TObject); 35 35 procedure ACategoryRemoveExecute(Sender: TObject); 36 procedure EditMeaningKeyPress(Sender: TObject; var Key: char); 36 37 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 37 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);38 38 procedure FormShow(Sender: TObject); 39 39 procedure ListBox1SelectionChange(Sender: TObject; User: boolean); … … 56 56 57 57 { TFormAcronym } 58 59 procedure TFormAcronym.FormKeyUp(Sender: TObject; var Key: Word;60 Shift: TShiftState);61 begin62 if Key = 13 then ButtonOk.Click;63 if Key = 27 then ButtonCancel.Click;64 end;65 58 66 59 procedure TFormAcronym.FormClose(Sender: TObject; var CloseAction: TCloseAction … … 94 87 UpdateInterface; 95 88 end; 89 end; 90 91 procedure TFormAcronym.EditMeaningKeyPress(Sender: TObject; var Key: char); 92 begin 93 if Ord(Key) = 13 then ButtonOk.Click; 94 if Ord(Key) = 27 then ButtonCancel.Click; 96 95 end; 97 96 -
trunk/Forms/UFormAcronyms.lfm
r69 r85 2 2 Left = 426 3 3 Height = 558 4 Top = 1844 Top = 251 5 5 Width = 740 6 6 Caption = 'Acronyms' … … 39 39 OnData = ListViewAcronymsData 40 40 OnDblClick = ListViewAcronymsDblClick 41 OnKeyPress = ListViewAcronymsKeyPress 41 42 OnResize = ListViewAcronymsResize 42 43 OnSelectItem = ListViewAcronymsSelectItem -
trunk/Forms/UFormAcronyms.pas
r51 r85 40 40 procedure ListViewAcronymsData(Sender: TObject; Item: TListItem); 41 41 procedure ListViewAcronymsDblClick(Sender: TObject); 42 procedure ListViewAcronymsKeyPress(Sender: TObject; var Key: char); 42 43 procedure ListViewAcronymsResize(Sender: TObject); 43 44 procedure ListViewAcronymsSelectItem(Sender: TObject; Item: TListItem; … … 87 88 begin 88 89 AModify.Execute; 90 end; 91 92 procedure TFormAcronyms.ListViewAcronymsKeyPress(Sender: TObject; var Key: char 93 ); 94 begin 95 if Key = #27 then Close; 89 96 end; 90 97 -
trunk/Forms/UFormCategories.lfm
r69 r85 33 33 ViewStyle = vsReport 34 34 OnData = ListViewCategoriesData 35 OnDblClick = ListViewCategoriesDblClick 36 OnKeyPress = ListViewCategoriesKeyPress 35 37 OnSelectItem = ListViewCategoriesSelectItem 36 38 end -
trunk/Forms/UFormCategories.pas
r51 r85 33 33 procedure FormShow(Sender: TObject); 34 34 procedure ListViewCategoriesData(Sender: TObject; Item: TListItem); 35 procedure ListViewCategoriesDblClick(Sender: TObject); 36 procedure ListViewCategoriesKeyPress(Sender: TObject; var Key: char); 35 37 procedure ListViewCategoriesSelectItem(Sender: TObject; Item: TListItem; 36 38 Selected: Boolean); … … 130 132 end; 131 133 134 procedure TFormCategories.ListViewCategoriesDblClick(Sender: TObject); 135 begin 136 AModify.Execute; 137 end; 138 139 procedure TFormCategories.ListViewCategoriesKeyPress(Sender: TObject; 140 var Key: char); 141 begin 142 if Key = #27 then Close; 143 end; 144 132 145 procedure TFormCategories.ListViewCategoriesSelectItem(Sender: TObject; Item: TListItem; 133 146 Selected: Boolean); -
trunk/Forms/UFormImportFormats.lfm
r69 r85 31 31 OnData = ListView1Data 32 32 OnDblClick = ListView1DblClick 33 OnKeyPress = ListView1KeyPress 33 34 OnSelectItem = ListView1SelectItem 34 35 end -
trunk/Forms/UFormImportFormats.pas
r51 r85 34 34 procedure ListView1Data(Sender: TObject; Item: TListItem); 35 35 procedure ListView1DblClick(Sender: TObject); 36 procedure ListView1KeyPress(Sender: TObject; var Key: char); 36 37 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 37 38 Selected: Boolean); … … 74 75 begin 75 76 AModify.Execute; 77 end; 78 79 procedure TFormImportFormats.ListView1KeyPress(Sender: TObject; var Key: char); 80 begin 81 if Key = #27 then Close; 76 82 end; 77 83 -
trunk/Forms/UFormImportSources.lfm
r76 r85 81 81 OnData = ListView1Data 82 82 OnDblClick = ListView1DblClick 83 OnKeyPress = ListView1KeyPress 83 84 OnResize = ListView1Resize 84 85 OnSelectItem = ListView1SelectItem -
trunk/Forms/UFormImportSources.pas
r74 r85 51 51 procedure ListView1Data(Sender: TObject; Item: TListItem); 52 52 procedure ListView1DblClick(Sender: TObject); 53 procedure ListView1KeyPress(Sender: TObject; var Key: char); 53 54 procedure ListView1Resize(Sender: TObject); 54 55 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; … … 104 105 begin 105 106 AModify.Execute; 107 end; 108 109 procedure TFormImportSources.ListView1KeyPress(Sender: TObject; var Key: char); 110 begin 111 if Key = #27 then Close; 106 112 end; 107 113
Note:
See TracChangeset
for help on using the changeset viewer.