mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 03:48:27 +02:00
lcl: add TCustomListBox.AddItem() method
git-svn-id: trunk@30968 -
This commit is contained in:
parent
550b1d3a3a
commit
8a3c07043c
@ -568,6 +568,11 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TCustomListBox.AddItem(const Item: String; AnObject: TObject);
|
||||
begin
|
||||
Items.AddObject(Item, AnObject);
|
||||
end;
|
||||
|
||||
function TCustomListBox.GetItemIndex: integer;
|
||||
begin
|
||||
if HandleAllocated then
|
||||
|
@ -548,6 +548,7 @@ type
|
||||
public
|
||||
constructor Create(TheOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
procedure AddItem(const Item: String; AnObject: TObject);
|
||||
procedure Click; override; // make it public
|
||||
procedure Clear; virtual;
|
||||
procedure ClearSelection;
|
||||
|
Loading…
Reference in New Issue
Block a user