mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 13:37:45 +02:00
IDE: clean up
git-svn-id: trunk@44143 -
This commit is contained in:
parent
deb8e8c40a
commit
b76dce2e3f
@ -285,9 +285,7 @@ type
|
||||
|
||||
function IndexInStringList(List: TStrings; Cmp: TCmpStrType; s: string): integer;
|
||||
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
||||
Cmp: TCmpStrType);
|
||||
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
||||
Cmp: TCmpStrType; MaxCount: integer);
|
||||
Cmp: TCmpStrType; MaxCount: integer = 1000);
|
||||
function CheckGroupItemChecked(CheckGroup: TCheckGroup; const Caption: string): Boolean;
|
||||
|
||||
|
||||
@ -2759,22 +2757,6 @@ begin
|
||||
Result:=-1;
|
||||
end;
|
||||
|
||||
procedure SetComboBoxText(AComboBox: TComboBox; const AText: String;
|
||||
Cmp: TCmpStrType);
|
||||
var
|
||||
a: integer;
|
||||
begin
|
||||
a:=IndexInStringList(AComboBox.Items,Cmp,AText);
|
||||
if a>=0 then
|
||||
AComboBox.ItemIndex:=a
|
||||
else
|
||||
begin
|
||||
AComboBox.Items.Add(AText);
|
||||
AComboBox.ItemIndex := IndexInStringList(AComboBox.Items,Cmp,AText);
|
||||
end;
|
||||
AComboBox.Text := AText;
|
||||
end;
|
||||
|
||||
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
||||
Cmp: TCmpStrType; MaxCount: integer);
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user