mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:19:37 +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;
|
function IndexInStringList(List: TStrings; Cmp: TCmpStrType; s: string): integer;
|
||||||
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
||||||
Cmp: TCmpStrType);
|
Cmp: TCmpStrType; MaxCount: integer = 1000);
|
||||||
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
|
||||||
Cmp: TCmpStrType; MaxCount: integer);
|
|
||||||
function CheckGroupItemChecked(CheckGroup: TCheckGroup; const Caption: string): Boolean;
|
function CheckGroupItemChecked(CheckGroup: TCheckGroup; const Caption: string): Boolean;
|
||||||
|
|
||||||
|
|
||||||
@ -2759,22 +2757,6 @@ begin
|
|||||||
Result:=-1;
|
Result:=-1;
|
||||||
end;
|
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;
|
procedure SetComboBoxText(AComboBox:TComboBox; const AText: String;
|
||||||
Cmp: TCmpStrType; MaxCount: integer);
|
Cmp: TCmpStrType; MaxCount: integer);
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user