lazarus/lcl/include/dbcombobox.inc
2011-04-15 02:06:52 +00:00

43 lines
1.4 KiB
PHP

{%MainUnit ../dbctrls.pas}
{
*****************************************************************************
* *
* This file is part of the Lazarus Component Library (LCL) *
* *
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
* for details about the copyright. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
*****************************************************************************
}
// included by dbctrls.pas
{ TDBComboBox }
{
procedure TDBComboBox.DataChange(Sender: TObject);
begin
inherited DataChange(Sender);
end;
}
procedure TDBComboBox.UpdateData(Sender: TObject);
begin
FDataLink.Field.Text := Text;
end;
procedure TDBComboBox.UpdateText;
var
DataLinkField: TField;
begin
DataLinkField := FDataLink.Field;
if Assigned(DataLinkField) then
Text := DataLinkField.Text
else
inherited;
end;