mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
LCL, Carbon, fix duplicate entries in comboboxes
git-svn-id: trunk@40684 -
This commit is contained in:
parent
77e0434dd9
commit
a3c424c1e1
@ -40,7 +40,6 @@ type
|
||||
FOwner: TCarbonComboBox; // Carbon combo box control owning strings
|
||||
protected
|
||||
procedure Put(Index: Integer; const S: string); override;
|
||||
procedure InsertItem(Index: Integer; const S: string); override;
|
||||
procedure InsertItem(Index: Integer; const S: string; O: TObject); override;
|
||||
public
|
||||
constructor Create(AOwner: TCarbonComboBox);
|
||||
@ -116,20 +115,6 @@ begin
|
||||
FOwner.Insert(Index, S);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCarbonComboBoxStrings.InsertItem
|
||||
Params: Index - Line index
|
||||
S - Text to insert
|
||||
|
||||
Inserts the text on line with the specified index
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TCarbonComboBoxStrings.InsertItem(Index: Integer; const S: string);
|
||||
begin
|
||||
inherited InsertItem(Index, S);
|
||||
|
||||
FOwner.Insert(Index, S);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCarbonComboBoxStrings.InsertItem
|
||||
Params: Index - Line index
|
||||
|
Loading…
Reference in New Issue
Block a user