Changeset 11 for trunk/Forms/UFormRecords.pas
- Timestamp:
- Feb 16, 2015, 10:42:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormRecords.pas
r4 r11 52 52 {$R *.lfm} 53 53 54 resourcestring 55 STable = 'Table'; 56 SRemoveRecord = 'Remove record'; 57 SRemoveRecordConfirm = 'Do you want to remove record?'; 58 54 59 { TFormRecords } 55 60 56 61 procedure TFormRecords.FormShow(Sender: TObject); 62 var 63 I: Integer; 57 64 begin 58 Caption := 'Table - ' + Table.Caption; 65 for I := 0 to ToolBar1.ButtonCount - 1 do 66 ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption; 67 Caption := STable + ' - ' + Table.Caption; 59 68 ReloadList; 60 69 end; … … 94 103 procedure TFormRecords.ARemoveExecute(Sender: TObject); 95 104 begin 96 if Assigned(ListView1.Selected) then begin 105 if Assigned(ListView1.Selected) then 106 if MessageDlg(SRemoveRecord, SRemoveRecordConfirm, 107 mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin 97 108 Table.Records.Remove(ListView1.Selected.Data); 98 109 ReloadList;
Note:
See TracChangeset
for help on using the changeset viewer.