Курсовая работа: Разработка базы данных флагов мира
end;
end;
procedure TfrmEditCountry.cbLanguage3Change(Sender: TObject);
begin
if (cbLanguage2.Text = '--- íåò ---') then
begin
cbLanguage2.ItemIndex := cbLanguage3.ItemIndex;
cbLanguage3.ItemIndex := 0;
end;
if (cbLanguage3.Text = cbLanguage1.Text) or (cbLanguage2.Text = cbLanguage3.Text) and (cbLanguage3.Text <> '--- íåò ---') then
begin
cbLanguage3.ItemIndex := 0;
end;
end;
procedure TfrmEditCountry.bbOpenDialogClick(Sender: TObject);
begin
DM.odFlag.Execute;
if DM.odFlag.FileName <> '' then
try
DM.tbCountryFlag.LoadFromFile(DM.odFlag.FileName);
except
MessageDlg('Îøèáêà çàãðóçêè ôàéëà ñ ðèñóíêîì ôëàãà', mtError, [mbOk],0)
end;
end;
procedure TfrmEditCountry.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = vk_Escape then frmEditCountry.Close;
end;