mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 18:58:17 +02:00
lcl: republish TDBListBox.Items (Delphi compatible). Fixes #14827
git-svn-id: trunk@30299 -
This commit is contained in:
parent
34a31903ab
commit
7b1ab64dc2
@ -356,7 +356,7 @@ Type
|
||||
function GetDataField: string;
|
||||
function GetDataSource: TDataSource;
|
||||
function GetField: TField;
|
||||
|
||||
// we need to override the Items Write method for db aware.
|
||||
procedure SetItems(Values : TStrings); override;
|
||||
|
||||
function GetReadOnly: Boolean;
|
||||
@ -393,12 +393,6 @@ Type
|
||||
protected
|
||||
procedure DataChange(Sender: TObject); override;
|
||||
procedure UpdateData(Sender: TObject); override;
|
||||
class procedure WSRegisterClass; override;
|
||||
public
|
||||
// we need to overrride the write method for db aware.
|
||||
// the Read isn't an issue since the list will be updated
|
||||
// on data change anyway
|
||||
property Items write SetItems;
|
||||
published
|
||||
property Align;
|
||||
property Anchors;
|
||||
@ -410,6 +404,7 @@ Type
|
||||
property DragMode;
|
||||
property ExtendedSelect;
|
||||
property ItemHeight;
|
||||
property Items;
|
||||
property MultiSelect;
|
||||
property OnClick;
|
||||
property OnDblClick;
|
||||
|
@ -42,14 +42,3 @@ begin
|
||||
FDataLink.Field.Text := Items[ItemIndex];
|
||||
end;
|
||||
|
||||
class procedure TDBListBox.WSRegisterClass;
|
||||
const
|
||||
Done: Boolean = False;
|
||||
begin
|
||||
if Done then
|
||||
Exit;
|
||||
inherited WSRegisterClass;
|
||||
RegisterPropertyToSkip(TDBListBox, 'Items', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
||||
Done := True;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user