Ignore:
Timestamp:
Feb 16, 2015, 10:42:24 PM (10 years ago)
Author:
chronos
Message:
  • Added: Czech translation for most of interface texts.
  • Fixed: Creation of new table fields.
  • Fixed: Saving XML database on exit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormRecords.pas

    r4 r11  
    5252{$R *.lfm}
    5353
     54resourcestring
     55  STable = 'Table';
     56  SRemoveRecord = 'Remove record';
     57  SRemoveRecordConfirm = 'Do you want to remove record?';
     58
    5459{ TFormRecords }
    5560
    5661procedure TFormRecords.FormShow(Sender: TObject);
     62var
     63  I: Integer;
    5764begin
    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;
    5968  ReloadList;
    6069end;
     
    94103procedure TFormRecords.ARemoveExecute(Sender: TObject);
    95104begin
    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
    97108    Table.Records.Remove(ListView1.Selected.Data);
    98109    ReloadList;
Note: See TracChangeset for help on using the changeset viewer.