mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-14 00:39:38 +01:00
43 lines
1.4 KiB
PHP
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;
|