Changeset 11 for trunk/Forms/UFormTables.pas
- Timestamp:
- Feb 16, 2015, 10:42:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormTables.pas
r9 r11 64 64 {$R *.lfm} 65 65 66 resourcestring 67 SRemoveTable = 'Remove table'; 68 SRemoveTableConfirm = 'Do you want to really remove table ''%s'' ?'; 69 SNewTable = 'New table'; 70 71 66 72 { TFormTables } 67 73 … … 104 110 begin 105 111 NewTable := TTable.Create; 106 NewTable.Name := 'New table';112 NewTable.Name := SNewTable; 107 113 NewTable.Database := Database; 108 114 FormTable.Load(NewTable); … … 128 134 begin 129 135 if Assigned(ListView1.Selected) then begin 130 if MessageDlg( 'Remove table', 'Do you want to really remove table ' +131 TTable(ListView1.Selected.Data).Name,mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin136 if MessageDlg(SRemoveTable, Format(SRemoveTableConfirm, [TTable(ListView1.Selected.Data).Name]), 137 mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin 132 138 Database.Tables.Remove(ListView1.Selected.Data); 133 139 ReloadList; … … 200 206 201 207 procedure TFormTables.FormShow(Sender: TObject); 202 begin 208 var 209 I: Integer; 210 begin 211 for I := 0 to ToolBar1.ButtonCount - 1 do 212 ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption; 203 213 UpdateInterface; 204 214 end;
Note:
See TracChangeset
for help on using the changeset viewer.