Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.lfm
r340 r373 196 196 ItemHeight = 0 197 197 OnClick = ListClick 198 OnKeyDown = FormKeyDown 198 OnDblClick = StartBtnClick 199 OnKeyPress = ListKeyPress 200 OnKeyDown = ListKeyDown 199 201 ParentFont = False 200 202 ScrollWidth = 266 -
trunk/Start.pas
r367 r373 57 57 AutoEnemyDownBtn: TButtonC; 58 58 ReplayBtn: TButtonB; 59 procedure ListKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 60 procedure ListKeyPress(Sender: TObject; var Key: char); 59 61 procedure StartBtnClick(Sender: TObject); 60 62 procedure FormPaint(Sender: TObject); … … 1049 1051 end; 1050 1052 end; 1053 end; 1054 1055 procedure TStartDlg.ListKeyPress(Sender: TObject; var Key: char); 1056 begin 1057 if Key = #13 then StartBtnClick(Sender); 1058 end; 1059 1060 procedure TStartDlg.ListKeyDown(Sender: TObject; var Key: Word; 1061 Shift: TShiftState); 1062 const 1063 DelKey = 46; 1064 begin 1065 if Key = DelKey then DeleteBtnClick(Sender) 1066 else FormKeyDown(Sender, Key, Shift); 1051 1067 end; 1052 1068
Note:
See TracChangeset
for help on using the changeset viewer.